python3Packages.debts: init at 0.5
This commit is contained in:
parent
3603c4e163
commit
a71acfeb0b
42
pkgs/development/python-modules/debts/default.nix
Normal file
42
pkgs/development/python-modules/debts/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib
|
||||
, python
|
||||
, buildPythonPackage
|
||||
, fetchFromGitLab
|
||||
, isPy27
|
||||
, jinja2
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "debts";
|
||||
version = "0.5";
|
||||
|
||||
# pypi does not ship tests
|
||||
src = fetchFromGitLab {
|
||||
domain = "framagit.org";
|
||||
owner = "almet";
|
||||
repo = "debts";
|
||||
rev = "d887bd8b340172d1c9bbcca6426529b8d1c2a241"; # no tags
|
||||
sha256 = "1d66nka81mv9c07mki78lp5hdajqv4cq6aq2k7bh3mhkc5hwnwlg";
|
||||
};
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
propagatedBuildInputs = [ jinja2 ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
# for some reason tests only work if the module is properly installed
|
||||
checkPhase = ''
|
||||
rm -r debts
|
||||
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "A simple library and cli-tool to help you solve some debts settlement scenarios";
|
||||
license = licenses.beerware;
|
||||
maintainers = [ maintainers.symphorien ];
|
||||
};
|
||||
}
|
@ -683,6 +683,8 @@ in {
|
||||
inherit (pkgs) dbus pkgconfig;
|
||||
};
|
||||
|
||||
debts = callPackage ../development/python-modules/debts { };
|
||||
|
||||
dftfit = callPackage ../development/python-modules/dftfit { };
|
||||
|
||||
dicom2nifti = callPackage ../development/python-modules/dicom2nifti { };
|
||||
|
Loading…
Reference in New Issue
Block a user