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

43 lines
773 B
Nix
Raw Normal View History

2017-05-15 11:06:47 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, cython
, cymem
, python
}:
buildPythonPackage rec {
pname = "preshed";
2018-10-20 11:05:45 +01:00
version = "2.0.1";
2017-05-15 11:06:47 +01:00
src = fetchPypi {
inherit pname version;
2018-10-20 11:05:45 +01:00
sha256 = "1rd943zp4gyspajqm5qxzndxziyh51grx0zcw23w8r9r65s1rq6s";
2017-05-15 11:06:47 +01:00
};
propagatedBuildInputs = [
cython
cymem
];
2018-10-20 11:05:45 +01:00
2017-05-15 11:06:47 +01:00
buildInputs = [
pytest
];
2018-10-20 11:05:45 +01:00
prePatch = ''
substituteInPlace setup.py \
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.31.0"
'';
2017-05-15 11:06:47 +01:00
checkPhase = ''
${python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "Cython hash tables that assume keys are pre-hashed";
homepage = https://github.com/explosion/preshed;
license = licenses.mit;
maintainers = with maintainers; [ sdll ];
};
}