38 lines
679 B
Nix
38 lines
679 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "murmurhash";
|
|
version = "1.0.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "00a5252b569d3f914b5bd0bce72d2efe9c0fb91a9703556ea1b608b141c68f2d";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "'wheel>=0.32.0,<0.33.0'" ""
|
|
'';
|
|
|
|
buildInputs = [
|
|
cython
|
|
];
|
|
|
|
# No test
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
pytest murmurhash
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cython bindings for MurmurHash2";
|
|
homepage = "https://github.com/explosion/murmurhash";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ aborsu ];
|
|
};
|
|
}
|