1{
2 lib,
3 base58,
4 buildPythonPackage,
5 fetchFromGitHub,
6 morphys,
7 pytestCheckHook,
8 six,
9 varint,
10}:
11
12buildPythonPackage rec {
13 pname = "py-multihash";
14 version = "2.0.1";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "multiformats";
19 repo = "py-multihash";
20 tag = "v${version}";
21 hash = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
22 };
23
24 postPatch = ''
25 substituteInPlace setup.py \
26 --replace "'pytest-runner', " ""
27 '';
28
29 propagatedBuildInputs = [
30 base58
31 morphys
32 six
33 varint
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "multihash" ];
39
40 meta = with lib; {
41 description = "Self describing hashes - for future proofing";
42 homepage = "https://github.com/multiformats/py-multihash";
43 license = licenses.mit;
44 maintainers = with maintainers; [ rakesh4g ];
45 };
46}