depot/third_party/nixpkgs/pkgs/development/python-modules/murmurhash/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
742 B
Nix

{
lib,
buildPythonPackage,
cython,
fetchPypi,
pythonOlder,
}:
buildPythonPackage rec {
pname = "murmurhash";
version = "1.0.10";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-UoKqsTF4BMbr1t1/afFbqQda7mccRKNL4r3g8bEe+Io=";
};
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 ];
};
}