mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
beancount: move to pythonPackages
This commit is contained in:
parent
762378a5d7
commit
63193b19b3
3 changed files with 15 additions and 11 deletions
|
@ -1,16 +1,20 @@
|
|||
{ stdenv, fetchhg, pkgs, pythonPackages }:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
, beautifulsoup4, bottle, chardet, dateutil
|
||||
, google_api_python_client, lxml, ply, python_magic
|
||||
, nose }:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
buildPythonPackage rec {
|
||||
version = "2.0.0";
|
||||
name = "beancount-${version}";
|
||||
namePrefix = "";
|
||||
pname = "beancount";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/b/beancount/${name}.tar.gz";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0wxwf02d3raglwqsxdsgf89fniakv1m19q825w76k5z004g18y42";
|
||||
};
|
||||
|
||||
buildInputs = with pythonPackages; [ nose ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
# Automatic tests cannot be run because it needs to import some local modules for tests.
|
||||
doCheck = false;
|
||||
|
@ -18,7 +22,7 @@ pythonPackages.buildPythonApplication rec {
|
|||
nosetests
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with pythonPackages; [
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
bottle
|
||||
chardet
|
|
@ -18775,9 +18775,7 @@ with pkgs;
|
|||
|
||||
bastet = callPackage ../games/bastet {};
|
||||
|
||||
beancount = callPackage ../applications/office/beancount {
|
||||
pythonPackages = python3Packages;
|
||||
};
|
||||
beancount = with python3.pkgs; toPythonApplication beancount;
|
||||
|
||||
bean-add = callPackage ../applications/office/beancount/bean-add.nix { };
|
||||
|
||||
|
|
|
@ -931,6 +931,8 @@ in {
|
|||
|
||||
bcdoc = callPackage ../development/python-modules/bcdoc {};
|
||||
|
||||
beancount = callPackage ../development/python-modules/beancount { };
|
||||
|
||||
beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 { };
|
||||
|
||||
beaker = buildPythonPackage rec {
|
||||
|
|
Loading…
Reference in a new issue