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