My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/islpy/default.nix

39 lines
821 B

{ lib
, buildPythonPackage
, fetchPypi
, isl
, pybind11
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "islpy";
version = "2022.1.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Z0LXmbQeCyBPP0mtnt+UFyi08tcfP9XLZUS8jzkrADo=";
};
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 ];
};
}