diff options
author | Roger Qiu <roger.qiu@polyhack.io> | 2019-01-21 15:50:13 +1100 |
---|---|---|
committer | Roger Qiu <roger.qiu@polyhack.io> | 2019-01-22 13:09:44 +1100 |
commit | ad7c305faca9cbecd40007d1b44fc69248b23a62 (patch) | |
tree | 11d207c9d28acae8918b9620c573b605a95cb31f /pkgs/development/python-modules | |
parent | 218deb37361ffd23eca8cb44a5ceebb731122452 (diff) | |
download | nixlib-ad7c305faca9cbecd40007d1b44fc69248b23a62.tar nixlib-ad7c305faca9cbecd40007d1b44fc69248b23a62.tar.gz nixlib-ad7c305faca9cbecd40007d1b44fc69248b23a62.tar.bz2 nixlib-ad7c305faca9cbecd40007d1b44fc69248b23a62.tar.lz nixlib-ad7c305faca9cbecd40007d1b44fc69248b23a62.tar.xz nixlib-ad7c305faca9cbecd40007d1b44fc69248b23a62.tar.zst nixlib-ad7c305faca9cbecd40007d1b44fc69248b23a62.zip |
pythonPackages.grandalf: init at 0.6
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/grandalf/default.nix | 41 | ||||
-rw-r--r-- | pkgs/development/python-modules/grandalf/no-setup-requires-pytestrunner.patch | 15 |
2 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/grandalf/default.nix b/pkgs/development/python-modules/grandalf/default.nix new file mode 100644 index 000000000000..79413b26544f --- /dev/null +++ b/pkgs/development/python-modules/grandalf/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pyparsing +, future +, pytest +, pytestrunner +}: + +buildPythonPackage rec { + pname = "grandalf"; + version = "0.6"; + + # fetch from github to acquire tests + src = fetchFromGitHub { + owner = "bdcht"; + repo = "grandalf"; + rev = "v${version}"; + sha256 = "1f1l288sqna0bca7dwwvyw7wzg9b2613g6vc0g0vfngm7k75b2jg"; + }; + + propagatedBuildInputs = [ + pyparsing + future + ]; + + checkInputs = [ pytest pytestrunner ]; + + patches = [ ./no-setup-requires-pytestrunner.patch ]; + + checkPhase = '' + pytest tests + ''; + + meta = with lib; { + description = "A python package made for experimentations with graphs and drawing algorithms"; + homepage = https://github.com/bdcht/grandalf; + license = licenses.gpl2; + maintainers = with maintainers; [ cmcdragonkai ]; + }; +} diff --git a/pkgs/development/python-modules/grandalf/no-setup-requires-pytestrunner.patch b/pkgs/development/python-modules/grandalf/no-setup-requires-pytestrunner.patch new file mode 100644 index 000000000000..80e12e246ebb --- /dev/null +++ b/pkgs/development/python-modules/grandalf/no-setup-requires-pytestrunner.patch @@ -0,0 +1,15 @@ +diff --git a/setup.py b/setup.py +index 0470622..d574ceb 100755 +--- a/setup.py ++++ b/setup.py +@@ -75,8 +75,8 @@ setup( + # your project is installed. For an analysis of "install_requires" vs pip's + # requirements files see: + # https://packaging.python.org/en/latest/requirements.html +- setup_requires=['pytest-runner',], +- tests_require=['pytest',], ++ setup_requires=[], ++ tests_require=['pytest','pytest-runner',], + + install_requires=['pyparsing','future'], + |