nixpkgs/pkgs/development/python-modules/py-multiaddr/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

53 lines
975 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, varint
, base58
, netaddr
, idna
, py-cid
, py-multicodec
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "py-multiaddr";
version = "0.0.9";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "multiformats";
repo = pname;
rev = "v${version}";
hash = "sha256-cGM7iYQPP+UOkbTxRhzuED0pkcydFCO8vpx9wTc0/HI=";
};
postPatch = ''
substituteInPlace setup.py --replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [
varint
base58
netaddr
idna
py-cid
py-multicodec
];
nativeCheckInputs = [
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 ];
};
}