nixpkgs/pkgs/development/python-modules/islpy/default.nix
Robert Scott be1281bc0b pythonPackages.islpy: fix build
also convert to pytestCheckHook
2020-10-05 14:35:18 -07:00

41 lines
839 B
Nix

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