Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / py-multiaddr / default.nix
blob28ee3cffb917294379d892ac2019708561a0422e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , varint
6 , base58
7 , netaddr
8 , idna
9 , py-cid
10 , py-multicodec
11 , pytestCheckHook
14 buildPythonPackage rec {
15   pname = "py-multiaddr";
16   version = "0.0.9";
17   format = "setuptools";
18   disabled = pythonOlder "3.5";
20   src = fetchFromGitHub {
21     owner = "multiformats";
22     repo = pname;
23     rev = "v${version}";
24     hash = "sha256-cGM7iYQPP+UOkbTxRhzuED0pkcydFCO8vpx9wTc0/HI=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py --replace "'pytest-runner'," ""
29   '';
31   propagatedBuildInputs = [
32     varint
33     base58
34     netaddr
35     idna
36     py-cid
37     py-multicodec
38   ];
40   nativeCheckInputs = [
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [ "multiaddr" ];
46   meta = with lib; {
47     description = "Composable and future-proof network addresses";
48     homepage = "https://github.com/multiformats/py-multiaddr";
49     license = with licenses; [ mit asl20 ];
50     maintainers = with maintainers; [ Luflosi ];
51   };