1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/development/python-modules/murmurhash/default.nix

36 lines
707 B
Nix
Raw Normal View History

2017-05-14 23:26:25 +01:00
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, cython
, python
}:
buildPythonPackage rec {
pname = "murmurhash";
2017-05-14 23:26:25 +01:00
version = "0.26.4";
name = pname + "-" + version;
2017-05-14 23:26:25 +01:00
src = fetchFromGitHub {
owner = "explosion";
repo = "murmurhash";
rev = "0.26.4";
sha256 = "0n2j0glhlv2yh3fjgbg4d79j1c1fpchgjd4vnpw908l9mzchhmdv";
2017-05-14 23:26:25 +01:00
};
buildInputs = [
cython
];
2017-05-14 23:26:25 +01:00
checkPhase = ''
cd murmurhash/tests
${python.interpreter} -m unittest discover -p "*test*"
'';
2017-05-14 23:26:25 +01:00
meta = with stdenv.lib; {
description = "Cython bindings for MurmurHash2";
homepage = https://github.com/explosion/murmurhash;
license = licenses.mit;
maintainers = with maintainers; [ sdll ];
};
}