1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchPypi,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "murmurhash";
11 version = "1.0.13";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-c3JG1B7gD/dLB7C9HwiIvjBNIDzmaOZCyGqmTt4w+Lc=";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace "'wheel>=0.32.0,<0.33.0'" ""
24 '';
25
26 buildInputs = [ cython ];
27
28 # No test
29 doCheck = false;
30
31 pythonImportsCheck = [ "murmurhash" ];
32
33 meta = with lib; {
34 description = "Cython bindings for MurmurHash2";
35 homepage = "https://github.com/explosion/murmurhash";
36 license = licenses.mit;
37 maintainers = with maintainers; [ aborsu ];
38 };
39}