depot/third_party/nixpkgs/pkgs/development/python-modules/islpy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

41 lines
738 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isl
, pytest
, cffi
, six
}:
buildPythonPackage rec {
pname = "islpy";
version = "2019.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "834b6b946f33d578d5c6b2f863dd93f7ecc4c0a2bf73407c96ef9f95b6b71bbf";
};
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 ];
};
}