diff options
Diffstat (limited to 'pkgs/development/python-modules/networkx/default.nix')
-rw-r--r-- | pkgs/development/python-modules/networkx/default.nix | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/networkx/default.nix b/pkgs/development/python-modules/networkx/default.nix index 40a6cdcf4b2ed..eb3051d8e14bd 100644 --- a/pkgs/development/python-modules/networkx/default.nix +++ b/pkgs/development/python-modules/networkx/default.nix @@ -1,24 +1,28 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# optional-dependencies -, lxml -, matplotlib -, numpy -, pandas -, pydot -, pygraphviz -, scipy -, sympy + # optional-dependencies + lxml, + matplotlib, + numpy, + pandas, + pydot, + pygraphviz, + scipy, + sympy, -# tests -, pytest-xdist -, pytestCheckHook + # tests + pytest-xdist, + pytestCheckHook, + + # reverse dependency + sage, }: buildPythonPackage rec { @@ -34,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-DBJ9iy9IZfWa6cuKr81gtccPMkHr1m997618SrkBJsk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies = { default = [ @@ -53,6 +55,10 @@ buildPythonPackage rec { ]; }; + passthru.tests = { + inherit sage; + }; + nativeCheckInputs = [ pytest-xdist pytestCheckHook |