blob: b2ad11184d1441b8ca07bf96b12aa5d9e9ceab50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
varint,
base58,
netaddr,
idna,
py-cid,
py-multicodec,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "py-multiaddr";
version = "0.0.10";
format = "setuptools";
src = fetchFromGitHub {
owner = "multiformats";
repo = "py-multiaddr";
tag = "v${version}";
hash = "sha256-N46D2H3RG6rtdBrSyDjh8UxD+Ph/FXEa4FcEI2uz4y8=";
};
postPatch = ''
substituteInPlace setup.py --replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [
varint
base58
netaddr
idna
py-cid
py-multicodec
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "multiaddr" ];
meta = {
description = "Composable and future-proof network addresses";
homepage = "https://github.com/multiformats/py-multiaddr";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [ Luflosi ];
};
}
|