87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
39 lines
825 B
Nix
39 lines
825 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isl
|
|
, pybind11
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "islpy";
|
|
version = "2023.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-QLkpCBF95OBOzPrBXmlzyhFMfq1bs2+S/8Z5n4oMekg=";
|
|
};
|
|
|
|
postConfigure = ''
|
|
substituteInPlace setup.py \
|
|
--replace "\"pytest>=2\"," ""
|
|
'';
|
|
|
|
buildInputs = [ isl pybind11 ];
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
preCheck = "mv islpy islpy.hidden";
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pythonImportsCheck = [ "islpy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper around isl, an integer set library";
|
|
homepage = "https://github.com/inducer/islpy";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|