3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/islpy/default.nix

42 lines
736 B
Nix
Raw Normal View History

2019-04-15 22:27:00 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isl
, pytest
, cffi
, six
}:
buildPythonPackage rec {
pname = "islpy";
2019-10-24 07:47:36 +01:00
version = "2019.1.2";
2019-04-15 22:27:00 +01:00
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:36 +01:00
sha256 = "834b6b946f33d578d5c6b2f863dd93f7ecc4c0a2bf73407c96ef9f95b6b71bbf";
2019-04-15 22:27:00 +01:00
};
postConfigure = ''
substituteInPlace setup.py \
--replace "\"pytest>=2\"," ""
'';
buildInputs = [ isl ];
checkInputs = [ pytest ];
propagatedBuildInputs = [
cffi
six
];
checkPhase = ''
pytest test
'';
meta = with lib; {
description = "Python wrapper around isl, an integer set library";
homepage = https://github.com/inducer/islpy;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}