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