depot/third_party/nixpkgs/pkgs/development/python-modules/netaddr/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

41 lines
838 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "netaddr";
version = "0.9.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-e0b6mxotcf1d6eSjeE7zOXAKU6CMgEDwi69fEZTaASg=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"netaddr"
];
meta = with lib; {
description = "A network address manipulation library for Python";
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 ];
};
}