pythonPackages: Add version and pname attributes to packages
This commit is contained in:
committed by
Frederik Rietdijk
parent
4ae5f31403
commit
d99378654f
@@ -6,25 +6,26 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "murmurhash-${version}";
|
||||
pname = "murmurhash";
|
||||
version = "0.26.4";
|
||||
|
||||
name = pname + "-" + version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "explosion";
|
||||
repo = "murmurhash";
|
||||
rev = "0.26.4";
|
||||
sha256 = "0n2j0glhlv2yh3fjgbg4d79j1c1fpchgjd4vnpw908l9mzchhmdv";
|
||||
sha256 = "0n2j0glhlv2yh3fjgbg4d79j1c1fpchgjd4vnpw908l9mzchhmdv";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
cython
|
||||
];
|
||||
|
||||
|
||||
checkPhase = ''
|
||||
cd murmurhash/tests
|
||||
${python.interpreter} -m unittest discover -p "*test*"
|
||||
'';
|
||||
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cython bindings for MurmurHash2";
|
||||
homepage = https://github.com/explosion/murmurhash;
|
||||
|
||||
Reference in New Issue
Block a user