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

40 lines
700 B
Nix
Raw Normal View History

2017-05-15 11:06:47 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, murmurhash
2017-05-15 11:06:47 +01:00
, pytest
, cython
, cymem
, python
}:
buildPythonPackage rec {
pname = "preshed";
version = "3.0.4";
2017-05-15 11:06:47 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "13a779205d55ce323976ac06df597f9ec2d6f0563ebcf5652176cf4520c7d540";
2017-05-15 11:06:47 +01:00
};
propagatedBuildInputs = [
cython
cymem
murmurhash
2017-05-15 11:06:47 +01:00
];
2018-10-20 11:05:45 +01:00
checkInputs = [
2017-05-15 11:06:47 +01:00
pytest
];
checkPhase = ''
${python.interpreter} setup.py test
'';
2020-08-25 03:07:09 +01:00
2017-05-15 11:06:47 +01:00
meta = with stdenv.lib; {
description = "Cython hash tables that assume keys are pre-hashed";
homepage = "https://github.com/explosion/preshed";
2017-05-15 11:06:47 +01:00
license = licenses.mit;
maintainers = with maintainers; [ sdll ];
};
}