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