at master 771 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "mmh3"; 11 version = "5.2.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "hajimes"; 16 repo = "mmh3"; 17 tag = "v${version}"; 18 hash = "sha256-55NWdPQIPY40oJo9VxM4HsUUXQJimIf6nqWmacc57dE="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 pythonImportsCheck = [ "mmh3" ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 meta = { 28 description = "Python wrapper for MurmurHash3, a set of fast and robust hash functions"; 29 homepage = "https://github.com/hajimes/mmh3"; 30 changelog = "https://github.com/hajimes/mmh3/blob/${src.tag}/CHANGELOG.md"; 31 license = lib.licenses.cc0; 32 maintainers = [ lib.maintainers.sarahec ]; 33 }; 34}