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