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";
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

View file

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

View file

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