From ca25eda92c9e1b30528acace7fd01cc102b4a8d7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Mar 2025 10:33:55 +0100 Subject: [PATCH] python313Packages.getmac: refactor - disable benchmark --- .../development/python-modules/getmac/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/getmac/default.nix b/pkgs/development/python-modules/getmac/default.nix index 7810c15024a5..9e6149fa77ac 100644 --- a/pkgs/development/python-modules/getmac/default.nix +++ b/pkgs/development/python-modules/getmac/default.nix @@ -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"; }; }