at 23.11-beta 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, py 5, pytest-benchmark 6, pytest-mock 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "getmac"; 13 version = "0.9.4"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "GhostofGoes"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-B9agBmSrD3ZhqpGclZdMQNRSLSkepR6iduP1yrYz9tU="; 23 }; 24 25 nativeCheckInputs = [ 26 py 27 pytestCheckHook 28 pytest-benchmark 29 pytest-mock 30 ]; 31 32 disabledTests = [ 33 # Disable CLI tests 34 "test_cli_main_basic" 35 "test_cli_main_verbose" 36 "test_cli_main_debug" 37 "test_cli_multiple_debug_levels" 38 # Disable test that require network access 39 "test_uuid_lanscan_iface" 40 # Mocking issue 41 "test_initialize_method_cache_valid_types" 42 ]; 43 44 pythonImportsCheck = [ 45 "getmac" 46 ]; 47 48 meta = with lib; { 49 description = "Python package to get the MAC address of network interfaces and hosts on the local network"; 50 homepage = "https://github.com/GhostofGoes/getmac"; 51 changelog = "https://github.com/GhostofGoes/getmac/blob/${version}/CHANGELOG.md"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ colemickens ]; 54 }; 55}