Skip to content

Commit

Permalink
pythonPackages.islpy: fix build
Browse files Browse the repository at this point in the history
also convert to pytestCheckHook
  • Loading branch information
risicle authored and jonringer committed Oct 5, 2020
1 parent b0f40be commit be1281b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pkgs/development/python-modules/islpy/default.nix
Expand Up @@ -2,14 +2,17 @@
, buildPythonPackage
, fetchPypi
, isl
, pytest
, pybind11
, pytestCheckHook
, pythonOlder
, cffi
, six
}:

buildPythonPackage rec {
pname = "islpy";
version = "2020.2";
disabled = pythonOlder "3.6";

src = fetchPypi {
inherit pname version;
Expand All @@ -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";
Expand Down

0 comments on commit be1281b

Please sign in to comment.