e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
41 lines
832 B
Nix
41 lines
832 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isl
|
|
, pybind11
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "islpy";
|
|
version = "2023.2.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-3XQ5i682k4q7fCqdmCjMGi5UnGyASFzsiwaymr+q0Y8=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|