2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-15 11:06:47 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-10-02 18:37:42 +01:00
|
|
|
, murmurhash
|
2017-05-15 11:06:47 +01:00
|
|
|
, pytest
|
|
|
|
, cython
|
|
|
|
, cymem
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "preshed";
|
2021-10-27 23:05:30 +01:00
|
|
|
version = "3.0.6";
|
2017-05-15 11:06:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-27 23:05:30 +01:00
|
|
|
sha256 = "fb3b7588a3a0f2f2f1bf3fe403361b2b031212b73a37025aea1df7215af3772a";
|
2017-05-15 11:06:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-09-18 10:22:27 +01:00
|
|
|
cython
|
|
|
|
cymem
|
|
|
|
murmurhash
|
2017-05-15 11:06:47 +01:00
|
|
|
];
|
2018-10-20 11:05:45 +01:00
|
|
|
|
2019-10-02 18:37:42 +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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-15 11:06:47 +01:00
|
|
|
description = "Cython hash tables that assume keys are pre-hashed";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/explosion/preshed";
|
2017-05-15 11:06:47 +01:00
|
|
|
license = licenses.mit;
|
2021-09-18 10:22:27 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2017-05-15 11:06:47 +01:00
|
|
|
}
|