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