nixpkgs/pkgs/development/python-modules/islpy/default.nix

41 lines
839 B
Nix
Raw Normal View History

2019-04-15 21:27:00 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isl
, pybind11
, pytestCheckHook
, pythonOlder
2019-04-15 21:27:00 +00:00
, cffi
, six
}:
buildPythonPackage rec {
pname = "islpy";
2020-08-16 17:31:04 +00:00
version = "2020.2";
disabled = pythonOlder "3.6";
2019-04-15 21:27:00 +00:00
src = fetchPypi {
inherit pname version;
2020-08-16 17:31:04 +00:00
sha256 = "ee797e1284bffe897568f9cc1f063f1a6fac8d7b87596308b7467e9b870a90ef";
2019-04-15 21:27:00 +00:00
};
postConfigure = ''
substituteInPlace setup.py \
--replace "\"pytest>=2\"," ""
'';
buildInputs = [ isl pybind11 ];
propagatedBuildInputs = [ six ];
2019-04-15 21:27:00 +00:00
preCheck = "mv islpy islpy.hidden";
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "islpy" ];
2019-04-15 21:27:00 +00:00
meta = with lib; {
description = "Python wrapper around isl, an integer set library";
homepage = "https://github.com/inducer/islpy";
2019-04-15 21:27:00 +00:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}