2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-14 23:26:25 +01:00
|
|
|
, buildPythonPackage
|
2018-03-12 22:44:45 +00:00
|
|
|
, fetchPypi
|
2017-05-14 23:26:25 +01:00
|
|
|
, cython
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "murmurhash";
|
2021-02-20 09:09:11 +00:00
|
|
|
version = "1.0.5";
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2018-03-12 22:44:45 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:11 +00:00
|
|
|
sha256 = "98ec9d727bd998a35385abd56b062cf0cca216725ea7ec5068604ab566f7e97f";
|
2017-05-14 23:26:25 +01:00
|
|
|
};
|
|
|
|
|
2019-02-15 08:46:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'wheel>=0.32.0,<0.33.0'" ""
|
|
|
|
'';
|
|
|
|
|
2017-05-14 23:26:25 +01:00
|
|
|
buildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2018-03-12 22:44:45 +00:00
|
|
|
# No test
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-14 23:26:25 +01:00
|
|
|
checkPhase = ''
|
2018-03-12 22:44:45 +00:00
|
|
|
pytest murmurhash
|
2017-05-14 23:26:25 +01:00
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-14 23:26:25 +01:00
|
|
|
description = "Cython bindings for MurmurHash2";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/explosion/murmurhash";
|
2017-05-14 23:26:25 +01:00
|
|
|
license = licenses.mit;
|
2018-03-12 22:44:45 +00:00
|
|
|
maintainers = with maintainers; [ aborsu sdll ];
|
|
|
|
};
|
2017-05-14 23:26:25 +01:00
|
|
|
}
|