pythonPackages.islpy: fix build

also convert to pytestCheckHook
This commit is contained in:
Robert Scott 2020-10-05 21:16:47 +01:00 committed by Jon
parent b0f40bef4f
commit be1281bc0b

View File

@ -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";