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

37 lines
672 B
Nix
Raw Normal View History

2017-05-15 12:06:47 +02:00
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, cython
, cymem
, python
}:
buildPythonPackage rec {
pname = "preshed";
2018-07-22 12:16:00 +02:00
version = "1.0.1";
2017-05-15 12:06:47 +02:00
src = fetchPypi {
inherit pname version;
2018-07-22 12:16:00 +02:00
sha256 = "7b99ace606143a922163a7ff7ad4969b296288f5b20b9c9bda328caec3b92f71";
2017-05-15 12:06:47 +02:00
};
propagatedBuildInputs = [
cython
cymem
];
buildInputs = [
pytest
];
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 ];
};
}