1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00
nixpkgs/pkgs/development/python-modules/preshed/default.nix

37 lines
672 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-07-22 11:16:00 +01:00
version = "1.0.1";
2017-05-15 11:06:47 +01:00
src = fetchPypi {
inherit pname version;
2018-07-22 11:16:00 +01:00
sha256 = "7b99ace606143a922163a7ff7ad4969b296288f5b20b9c9bda328caec3b92f71";
2017-05-15 11:06:47 +01: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 ];
};
}