1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "fnvhash";
10 version = "0.1.0";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "znerol";
15 repo = "py-fnvhash";
16 rev = "v${version}";
17 sha256 = "00h8i70qd3dpsyf2dp7fkcb9m2prd6m3l33qv3wf6idpnqgjz6fq";
18 };
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 pythonImportsCheck = [ "fnvhash" ];
23
24 meta = with lib; {
25 description = "Python FNV hash implementation";
26 homepage = "https://github.com/znerol/py-fnvhash";
27 license = with licenses; [ mit ];
28 maintainers = with maintainers; [ fab ];
29 };
30}