nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 base58,
4 blake3,
5 buildPythonPackage,
6 fetchFromGitHub,
7 mmh3,
8 morphys,
9 pytestCheckHook,
10 setuptools,
11 six,
12 varint,
13}:
14
15buildPythonPackage rec {
16 pname = "py-multihash";
17 version = "3.0.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "multiformats";
22 repo = "py-multihash";
23 tag = "v${version}";
24 hash = "sha256-hdjJJh77P4dJQAIGTlPGolz1qDumvNOaIMyfxmWMzUk=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 base58
31 blake3
32 morphys
33 mmh3
34 six
35 varint
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 pythonImportsCheck = [ "multihash" ];
41
42 meta = {
43 description = "Self describing hashes - for future proofing";
44 homepage = "https://github.com/multiformats/py-multihash";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ rakesh4g ];
47 };
48}