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-02-20 09:09:13 +00:00
|
|
|
version = "3.0.5";
|
2017-05-15 11:06:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:13 +00:00
|
|
|
sha256 = "c6d3dba39ed5059aaf99767017b9568c75b2d0780c3481e204b1daecde00360e";
|
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
|
|
|
|
'';
|
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;
|
|
|
|
maintainers = with maintainers; [ sdll ];
|
|
|
|
};
|
|
|
|
}
|