2025-05-05 13:13:12 -07:00

35 lines
772 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mmh3";
version = "5.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "hajimes";
repo = "mmh3";
tag = "v${version}";
hash = "sha256-56LrJuoBvhGgw+w4GIQ0XEQtf5oR87el+gZxgBYkyx0=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "mmh3" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Python wrapper for MurmurHash3, a set of fast and robust hash functions";
homepage = "https://github.com/hajimes/mmh3";
changelog = "https://github.com/hajimes/mmh3/blob/v${version}/CHANGELOG.md";
license = lib.licenses.cc0;
maintainers = [ lib.maintainers.sarahec ];
};
}