diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/islpy/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/islpy/default.nix | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/islpy/default.nix b/nixpkgs/pkgs/development/python-modules/islpy/default.nix index 5b2a8e161469..736588aa4504 100644 --- a/nixpkgs/pkgs/development/python-modules/islpy/default.nix +++ b/nixpkgs/pkgs/development/python-modules/islpy/default.nix @@ -2,18 +2,21 @@ , buildPythonPackage , fetchPypi , isl -, pytest +, pybind11 +, pytestCheckHook +, pythonOlder , cffi , six }: buildPythonPackage rec { pname = "islpy"; - version = "2020.2"; + version = "2020.2.2"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "ee797e1284bffe897568f9cc1f063f1a6fac8d7b87596308b7467e9b870a90ef"; + sha256 = "7eb7dfa41d6a67d9ee4ea4bb9f08bdbcbee42b364502136b7882cfd80ff427e0"; }; postConfigure = '' @@ -21,16 +24,12 @@ buildPythonPackage rec { --replace "\"pytest>=2\"," "" ''; - buildInputs = [ isl ]; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ - cffi - six - ]; + buildInputs = [ isl pybind11 ]; + propagatedBuildInputs = [ six ]; - checkPhase = '' - pytest test - ''; + preCheck = "mv islpy islpy.hidden"; + checkInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "islpy" ]; meta = with lib; { description = "Python wrapper around isl, an integer set library"; |