depot/third_party/nixpkgs/pkgs/development/python-modules/murmurhash/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01: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 ];
};
}