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