python313Packages.getmac: refactor (#392312)

This commit is contained in:
Fabian Affolter
2025-03-23 13:57:35 +01:00
committed by GitHub
@@ -7,27 +7,30 @@
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "getmac";
version = "0.9.5";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "GhostofGoes";
repo = pname;
repo = "getmac";
tag = version;
hash = "sha256-ZbTCbbASs7+ChmgcDePXSbiHOst6/eCkq9SiKgYhFyM=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
py
pytestCheckHook
pytest-benchmark
pytest-mock
pytestCheckHook
];
disabledTests = [
@@ -42,14 +45,16 @@ buildPythonPackage rec {
"test_initialize_method_cache_valid_types"
];
pytestFlagsArray = [ "--benchmark-disable" ];
pythonImportsCheck = [ "getmac" ];
meta = with lib; {
description = "Python package to get the MAC address of network interfaces and hosts on the local network";
mainProgram = "getmac";
homepage = "https://github.com/GhostofGoes/getmac";
changelog = "https://github.com/GhostofGoes/getmac/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/GhostofGoes/getmac/blob/${src.tag}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "getmac";
};
}