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