8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
39 lines
821 B
Nix
39 lines
821 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isl
|
|
, pybind11
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "islpy";
|
|
version = "2022.1.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-eWNc1xxOqEmPdSC1Ha6tfM8ofgkudfOGjvp3ZyM4pxE=";
|
|
};
|
|
|
|
postConfigure = ''
|
|
substituteInPlace setup.py \
|
|
--replace "\"pytest>=2\"," ""
|
|
'';
|
|
|
|
buildInputs = [ isl pybind11 ];
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
preCheck = "mv islpy islpy.hidden";
|
|
checkInputs = [ 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 ];
|
|
};
|
|
}
|