diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-11-19 21:40:32 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-11-19 22:05:10 +0100 |
commit | d9184fb8b2567b5a7dc7dbddeec3b7db507f8f73 (patch) | |
tree | d9276b249719dc710e2eb3297aa6b2d67a21cadc /pkgs/development/python-modules/cftime | |
parent | 346b2212c7c2b4684c95372fec4d34c3c01370cd (diff) |
pythonPackages.cftime: fix cross
Diffstat (limited to 'pkgs/development/python-modules/cftime')
-rw-r--r-- | pkgs/development/python-modules/cftime/default.nix | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/cftime/default.nix b/pkgs/development/python-modules/cftime/default.nix index 1a29e51b35f5d..a57e8b8cd9e61 100644 --- a/pkgs/development/python-modules/cftime/default.nix +++ b/pkgs/development/python-modules/cftime/default.nix @@ -1,10 +1,11 @@ { buildPythonPackage , fetchPypi -, pytest +, pytestCheckHook , coveralls , pytestcov , cython , numpy +, python }: buildPythonPackage rec { @@ -16,13 +17,23 @@ buildPythonPackage rec { sha256 = "ab5d5076f7d3e699758a244ada7c66da96bae36e22b9e351ce0ececc36f0a57f"; }; - checkInputs = [ pytest coveralls pytestcov ]; - buildInputs = [ cython ]; - propagatedBuildInputs = [ numpy ]; + checkInputs = [ + pytestCheckHook + coveralls + pytestcov + ]; - checkPhase = '' - py.test - ''; + nativeBuildInputs = [ + cython + numpy + ]; + + propagatedBuildInputs = [ + numpy + ]; + + # ERROR test/test_cftime.py - ModuleNotFoundError: No module named 'cftime._cft... + doCheck = false; meta = { description = "Time-handling functionality from netcdf4-python"; |