python311Packages.netaddr: refactor

This commit is contained in:
Fabian Affolter
2023-12-20 20:46:05 +01:00
committed by Martin Weinelt
parent 21cf4947c8
commit 08124158b5
@@ -3,8 +3,6 @@
, fetchPypi
, pythonOlder
, setuptools
, glibcLocales
, importlib-resources
, pytestCheckHook
}:
@@ -13,6 +11,8 @@ buildPythonPackage rec {
version = "0.9.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-e0b6mxotcf1d6eSjeE7zOXAKU6CMgEDwi69fEZTaASg=";
@@ -22,17 +22,20 @@ buildPythonPackage rec {
setuptools
];
LC_ALL = "en_US.UTF-8";
nativeCheckInputs = [
pytestCheckHook
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ importlib-resources ];
nativeCheckInputs = [ glibcLocales pytestCheckHook ];
pythonImportsCheck = [
"netaddr"
];
meta = with lib; {
homepage = "https://netaddr.readthedocs.io/en/latest/";
downloadPage = "https://github.com/netaddr/netaddr/releases";
changelog = "https://netaddr.readthedocs.io/en/latest/changes.html";
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 ];
};
}