1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "fnvhash"; 12 version = "0.2.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "znerol"; 17 repo = "py-fnvhash"; 18 tag = "v${version}"; 19 hash = "sha256-vAflKSvi0PD5r1q6GCTt6a4vTCsdBIebecRCKbbBphE="; 20 }; 21 22 build-system = [ 23 setuptools 24 setuptools-scm 25 ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "fnvhash" ]; 30 31 meta = with lib; { 32 changelog = "https://github.com/znerol/py-fnvhash/releases/tag/${src.tag}"; 33 description = "Python FNV hash implementation"; 34 homepage = "https://github.com/znerol/py-fnvhash"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}