nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 39 lines 821 B view raw
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 = "2022.1.2"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-Z0LXmbQeCyBPP0mtnt+UFyi08tcfP9XLZUS8jzkrADo="; 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 checkInputs = [ 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 = [ maintainers.costrouc ]; 38 }; 39}