1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, cython 5, python 6}: 7 8buildPythonPackage rec { 9 name = "murmurhash-${version}"; 10 version = "0.26.4"; 11 12 src = fetchFromGitHub { 13 owner = "explosion"; 14 repo = "murmurhash"; 15 rev = "0.26.4"; 16 sha256 = "0n2j0glhlv2yh3fjgbg4d79j1c1fpchgjd4vnpw908l9mzchhmdv"; 17 }; 18 19 buildInputs = [ 20 cython 21 ]; 22 23 checkPhase = '' 24 cd murmurhash/tests 25 ${python.interpreter} -m unittest discover -p "*test*" 26 ''; 27 28 meta = with stdenv.lib; { 29 description = "Cython bindings for MurmurHash2"; 30 homepage = https://github.com/explosion/murmurhash; 31 license = licenses.mit; 32 maintainers = with maintainers; [ sdll ]; 33 }; 34}