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