nixpkgs-suyu/pkgs/development/python-modules/murmurhash/default.nix
2021-10-29 10:06:46 -07:00

37 lines
679 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cython
}:
buildPythonPackage rec {
pname = "murmurhash";
version = "1.0.6";
src = fetchPypi {
inherit pname version;
sha256 = "00a5252b569d3f914b5bd0bce72d2efe9c0fb91a9703556ea1b608b141c68f2d";
};
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 ];
};
}