2019-04-15 22:27:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isl
|
2020-10-05 21:16:47 +01:00
|
|
|
, pybind11
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2019-04-15 22:27:00 +01:00
|
|
|
, cffi
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "islpy";
|
2020-10-15 22:58:44 +01:00
|
|
|
version = "2020.2.2";
|
2020-10-05 21:16:47 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-04-15 22:27:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-15 22:58:44 +01:00
|
|
|
sha256 = "7eb7dfa41d6a67d9ee4ea4bb9f08bdbcbee42b364502136b7882cfd80ff427e0";
|
2019-04-15 22:27:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "\"pytest>=2\"," ""
|
|
|
|
'';
|
|
|
|
|
2020-10-05 21:16:47 +01:00
|
|
|
buildInputs = [ isl pybind11 ];
|
|
|
|
propagatedBuildInputs = [ six ];
|
2019-04-15 22:27:00 +01:00
|
|
|
|
2020-10-05 21:16:47 +01:00
|
|
|
preCheck = "mv islpy islpy.hidden";
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "islpy" ];
|
2019-04-15 22:27:00 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper around isl, an integer set library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/inducer/islpy";
|
2019-04-15 22:27:00 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|