nixpkgs/pkgs/development/python-modules/murmurhash/default.nix
2022-11-01 00:13:21 +01:00

43 lines
745 B
Nix

{ lib
, buildPythonPackage
, cython
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "murmurhash";
version = "1.0.9";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-/no4yw09h8FOyd3cSTL/4tvHfXVGmrgP1QFGibDge1g=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'wheel>=0.32.0,<0.33.0'" ""
'';
buildInputs = [
cython
];
# No test
doCheck = false;
pythonImportsCheck = [
"murmurhash"
];
meta = with lib; {
description = "Cython bindings for MurmurHash2";
homepage = "https://github.com/explosion/murmurhash";
license = licenses.mit;
maintainers = with maintainers; [ aborsu ];
};
}