depot/third_party/nixpkgs/pkgs/development/python-modules/netaddr/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
855 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "netaddr";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-brj+3wQSxtKU0GiFwRDelFz00i0rUQ0EBPTgaVCFeYc=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "netaddr" ];
meta = with lib; {
description = "Network address manipulation library for Python";
mainProgram = "netaddr";
homepage = "https://netaddr.readthedocs.io/";
downloadPage = "https://github.com/netaddr/netaddr/releases";
changelog = "https://github.com/netaddr/netaddr/blob/${version}/CHANGELOG";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}