pythonPackages.islpy: fix build
also convert to pytestCheckHook
This commit is contained in:
parent
b0f40bef4f
commit
be1281bc0b
@ -2,7 +2,9 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isl
|
, isl
|
||||||
, pytest
|
, pybind11
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, cffi
|
, cffi
|
||||||
, six
|
, six
|
||||||
}:
|
}:
|
||||||
@ -10,6 +12,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "islpy";
|
pname = "islpy";
|
||||||
version = "2020.2";
|
version = "2020.2";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -21,16 +24,12 @@ buildPythonPackage rec {
|
|||||||
--replace "\"pytest>=2\"," ""
|
--replace "\"pytest>=2\"," ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ isl ];
|
buildInputs = [ isl pybind11 ];
|
||||||
checkInputs = [ pytest ];
|
propagatedBuildInputs = [ six ];
|
||||||
propagatedBuildInputs = [
|
|
||||||
cffi
|
|
||||||
six
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
preCheck = "mv islpy islpy.hidden";
|
||||||
pytest test
|
checkInputs = [ pytestCheckHook ];
|
||||||
'';
|
pythonImportsCheck = [ "islpy" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python wrapper around isl, an integer set library";
|
description = "Python wrapper around isl, an integer set library";
|
||||||
|
Loading…
Reference in New Issue
Block a user