depot/third_party/nixpkgs/pkgs/development/python-modules/islpy/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

39 lines
822 B
Nix

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