Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, cython 5}: 6 7buildPythonPackage rec { 8 pname = "murmurhash"; 9 version = "1.0.2"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "c7a646f6b07b033642b4f52ae2e45efd8b80780b3b90e8092a0cec935fbf81e2"; 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 stdenv.lib; { 32 description = "Cython bindings for MurmurHash2"; 33 homepage = "https://github.com/explosion/murmurhash"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ aborsu sdll ]; 36 }; 37}