2017-05-15 11:06:47 +01:00
|
|
|
{ stdenv
|
|
|
|
, 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";
|
2019-10-02 18:37:42 +01:00
|
|
|
version = "3.0.2";
|
2017-05-15 11:06:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-02 18:37:42 +01:00
|
|
|
sha256 = "1jrnci1pw9yv7j1a9b2q6c955l3gb8fv1q4d0id6s7bwr5l39mv1";
|
2017-05-15 11:06:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cython
|
|
|
|
cymem
|
2019-10-02 18:37:42 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|