1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00

Merge pull request #113135 from Luflosi/add-py-multiaddr

python3Packages.py-multiaddr: init at 0.0.9
This commit is contained in:
Sandro 2021-02-16 05:09:08 +01:00 committed by GitHub
commit 71916f9a3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, varint
, base58
, netaddr
, idna
, py-cid
, py-multicodec
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "py-multiaddr";
version = "0.0.9";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "multiformats";
repo = pname;
rev = "v${version}";
sha256 = "sha256-cGM7iYQPP+UOkbTxRhzuED0pkcydFCO8vpx9wTc0/HI=";
};
postPatch = ''
substituteInPlace setup.py --replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [
varint
base58
netaddr
idna
py-cid
py-multicodec
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "multiaddr" ];
meta = with lib; {
description = "Composable and future-proof network addresses";
homepage = "https://github.com/multiformats/py-multiaddr";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ Luflosi ];
};
}

View file

@ -5690,6 +5690,8 @@ in {
pymsteams = callPackage ../development/python-modules/pymsteams { };
py-multiaddr = callPackage ../development/python-modules/py-multiaddr { };
py-multibase = callPackage ../development/python-modules/py-multibase { };
py-multicodec = callPackage ../development/python-modules/py-multicodec { };