mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 09:03:48 +00:00
38 lines
684 B
Nix
38 lines
684 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "murmurhash";
|
|
version = "1.0.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "98ec9d727bd998a35385abd56b062cf0cca216725ea7ec5068604ab566f7e97f";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "'wheel>=0.32.0,<0.33.0'" ""
|
|
'';
|
|
|
|
buildInputs = [
|
|
cython
|
|
];
|
|
|
|
# No test
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
pytest murmurhash
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cython bindings for MurmurHash2";
|
|
homepage = "https://github.com/explosion/murmurhash";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ aborsu sdll ];
|
|
};
|
|
}
|