diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-24 18:55:48 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-24 18:55:48 +0200 |
commit | 9b6a64a317a4caee7fd82efd187830f589d44854 (patch) | |
tree | 4800817ba247ffffc75456c4bfb3f35fda57c166 /pkgs/development/python-modules/line_profiler | |
parent | a99ceffcb637adbdc642a60eb528551000c70af3 (diff) |
python.pkgs.line_profiler: fix build
Diffstat (limited to 'pkgs/development/python-modules/line_profiler')
-rw-r--r-- | pkgs/development/python-modules/line_profiler/default.nix | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/line_profiler/default.nix b/pkgs/development/python-modules/line_profiler/default.nix index 8ff0f391f208e..4275732881cde 100644 --- a/pkgs/development/python-modules/line_profiler/default.nix +++ b/pkgs/development/python-modules/line_profiler/default.nix @@ -6,6 +6,7 @@ , ipython , python , scikit-build +, cmake }: buildPythonPackage rec { @@ -17,9 +18,17 @@ buildPythonPackage rec { sha256 = "7218ad6bd81f8649b211974bf108933910f016d66b49651effe7bbf63667d141"; }; - nativeBuildInputs = [ cython ]; + nativeBuildInputs = [ + cython + cmake + scikit-build + ]; - propagatedBuildInputs = [ ipython scikit-build ]; + dontUseCmakeConfigure = true; + + propagatedBuildInputs = [ + ipython + ]; disabled = isPyPy; @@ -27,8 +36,12 @@ buildPythonPackage rec { rm -f _line_profiler.c ''; + checkInputs = [ + ipython + ]; + checkPhase = '' - ${python.interpreter} -m unittest discover -s tests + PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s . ''; meta = { @@ -36,6 +49,5 @@ buildPythonPackage rec { homepage = "https://github.com/rkern/line_profiler"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ fridh ]; - broken = true; }; } |