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