depot/third_party/nixpkgs/pkgs/development/python-modules/murmurhash/default.nix

43 lines
745 B
Nix
Raw Normal View History

{ 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 ];
};
}