beancount: move to pythonPackages

This commit is contained in:
Robert Schütz 2018-04-05 22:32:01 +02:00 committed by Frederik Rietdijk
parent 762378a5d7
commit 63193b19b3
3 changed files with 15 additions and 11 deletions

View File

@ -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

View File

@ -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 { };

View File

@ -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 {