1{ lib
2, buildPythonPackage
3, fetchPypi
4, isl
5, pybind11
6, pytestCheckHook
7, pythonOlder
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "islpy";
13 version = "2023.1.2";
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-NsNI1N9ZuNYWr1i3dl7hSaTP3jdsTYsIpoF98vrZG9Y=";
19 };
20
21 postConfigure = ''
22 substituteInPlace setup.py \
23 --replace "\"pytest>=2\"," ""
24 '';
25
26 buildInputs = [ isl pybind11 ];
27 propagatedBuildInputs = [ six ];
28
29 preCheck = "mv islpy islpy.hidden";
30 nativeCheckInputs = [ pytestCheckHook ];
31 pythonImportsCheck = [ "islpy" ];
32
33 meta = with lib; {
34 description = "Python wrapper around isl, an integer set library";
35 homepage = "https://github.com/inducer/islpy";
36 license = licenses.mit;
37 maintainers = [ ];
38 };
39}