Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 57 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, py, pytest-benchmark, pytest-mock, pytestCheckHook, setuptools,}:
buildPythonPackage rec { pname = "getmac"; version = "0.9.5"; pyproject = true;
src = fetchFromGitHub { owner = "GhostofGoes"; repo = "getmac"; tag = version; hash = "sha256-ZbTCbbASs7+ChmgcDePXSbiHOst6/eCkq9SiKgYhFyM="; };
build-system = [ setuptools ];
nativeCheckInputs = [ py pytest-benchmark pytest-mock pytestCheckHook ];
disabledTests = [ # Disable CLI tests "test_cli_main_basic" "test_cli_main_verbose" "test_cli_main_debug" "test_cli_multiple_debug_levels" # Disable test that require network access "test_uuid_lanscan_iface" # Mocking issue "test_initialize_method_cache_valid_types" ];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "getmac" ];
meta = { description = "Python package to get the MAC address of network interfaces and hosts on the local network"; homepage = "https://github.com/GhostofGoes/getmac"; changelog = "https://github.com/GhostofGoes/getmac/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ ]; mainProgram = "getmac"; };}