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

40 lines
690 B
Nix
Raw Normal View History

{ lib
2017-05-15 11:06:47 +01:00
, buildPythonPackage
, fetchPypi
, murmurhash
2017-05-15 11:06:47 +01:00
, pytest
, cython
, cymem
, python
}:
buildPythonPackage rec {
pname = "preshed";
version = "3.0.5";
2017-05-15 11:06:47 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "c6d3dba39ed5059aaf99767017b9568c75b2d0780c3481e204b1daecde00360e";
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
meta = with lib; {
2017-05-15 11:06:47 +01:00
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 ];
};
}