git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #54403 from MatrixAI/grandalf

pythonPackages.grandalf: init at 0.6

commit5476f592c5674fafdf34f125eac63d0090e4df53 authorworldofpeace <worldofpeace@users.noreply.github.com> dateTue 22 Jan 2019, 03:52 (8 years ago) parentc076bd2ad7c305
3 files changed+58
pkgs/development/python-modules/grandalf/default.nix+41 pkgs/development/python-modules/grandalf/no-setup-requires-pytestrunner.patch+15 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/grandalf/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pyparsing
5+, future
6+, pytest
7+, pytestrunner
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "grandalf";
12+ version = "0.6";
13+
14+ # fetch from github to acquire tests
15+ src = fetchFromGitHub {
16+ owner = "bdcht";
17+ repo = "grandalf";
18+ rev = "v${version}";
19+ sha256 = "1f1l288sqna0bca7dwwvyw7wzg9b2613g6vc0g0vfngm7k75b2jg";
20+ };
21+
22+ propagatedBuildInputs = [
23+ pyparsing
24+ future
25+ ];
26+
27+ checkInputs = [ pytest pytestrunner ];
28+
29+ patches = [ ./no-setup-requires-pytestrunner.patch ];
30+
31+ checkPhase = ''
32+ pytest tests
33+ '';
34+
35+ meta = with lib; {
36+ description = "A python package made for experimentations with graphs and drawing algorithms";
37+ homepage = https://github.com/bdcht/grandalf;
38+ license = licenses.gpl2;
39+ maintainers = with maintainers; [ cmcdragonkai ];
40+ };
41+}
pkgs/development/python-modules/grandalf/no-setup-requires-pytestrunner.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git a/setup.py b/setup.py
2+index 0470622..d574ceb 100755
3+--- a/setup.py
4++++ b/setup.py
5+@@ -75,8 +75,8 @@ setup(
6+ # your project is installed. For an analysis of "install_requires" vs pip's
7+ # requirements files see:
8+ # https://packaging.python.org/en/latest/requirements.html
9+- setup_requires=['pytest-runner',],
10+- tests_require=['pytest',],
11++ setup_requires=[],
12++ tests_require=['pytest','pytest-runner',],
13+
14+ install_requires=['pyparsing','future'],
15+
pkgs/top-level/python-packages.nix+2
@@ -380,6 +380,8 @@ in {
380380
381381 goocalendar = callPackage ../development/python-modules/goocalendar { };
382382
383+ grandalf = callPackage ../development/python-modules/grandalf { };
384+
383385 gsd = callPackage ../development/python-modules/gsd { };
384386
385387 gssapi = callPackage ../development/python-modules/gssapi { };