depot/third_party/nixpkgs/pkgs/development/python-modules/islpy/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

39 lines
819 B
Nix

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