nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, cython
5}:
6
7buildPythonPackage rec {
8 pname = "murmurhash";
9 version = "1.0.7";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "sha256-Ywo5br0xykTYm07KNvp06oquckrfCvqi3naAw1Cyk28=";
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}