beancount: move to pythonPackages
This commit is contained in:
parent
762378a5d7
commit
63193b19b3
@ -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";
|
version = "2.0.0";
|
||||||
name = "beancount-${version}";
|
pname = "beancount";
|
||||||
namePrefix = "";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
disabled = !isPy3k;
|
||||||
url = "mirror://pypi/b/beancount/${name}.tar.gz";
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
sha256 = "0wxwf02d3raglwqsxdsgf89fniakv1m19q825w76k5z004g18y42";
|
sha256 = "0wxwf02d3raglwqsxdsgf89fniakv1m19q825w76k5z004g18y42";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pythonPackages; [ nose ];
|
checkInputs = [ nose ];
|
||||||
|
|
||||||
# Automatic tests cannot be run because it needs to import some local modules for tests.
|
# Automatic tests cannot be run because it needs to import some local modules for tests.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
@ -18,7 +22,7 @@ pythonPackages.buildPythonApplication rec {
|
|||||||
nosetests
|
nosetests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [
|
propagatedBuildInputs = [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
bottle
|
bottle
|
||||||
chardet
|
chardet
|
@ -18775,9 +18775,7 @@ with pkgs;
|
|||||||
|
|
||||||
bastet = callPackage ../games/bastet {};
|
bastet = callPackage ../games/bastet {};
|
||||||
|
|
||||||
beancount = callPackage ../applications/office/beancount {
|
beancount = with python3.pkgs; toPythonApplication beancount;
|
||||||
pythonPackages = python3Packages;
|
|
||||||
};
|
|
||||||
|
|
||||||
bean-add = callPackage ../applications/office/beancount/bean-add.nix { };
|
bean-add = callPackage ../applications/office/beancount/bean-add.nix { };
|
||||||
|
|
||||||
|
@ -931,6 +931,8 @@ in {
|
|||||||
|
|
||||||
bcdoc = callPackage ../development/python-modules/bcdoc {};
|
bcdoc = callPackage ../development/python-modules/bcdoc {};
|
||||||
|
|
||||||
|
beancount = callPackage ../development/python-modules/beancount { };
|
||||||
|
|
||||||
beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 { };
|
beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 { };
|
||||||
|
|
||||||
beaker = buildPythonPackage rec {
|
beaker = buildPythonPackage rec {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user