Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 47 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-benchmark 5, pytest-mock 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "getmac"; 11 version = "0.8.3"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "GhostofGoes"; 16 repo = pname; 17 rev = version; 18 sha256 = "sha256-X4uuYisyobCxhoywaSXBZjVxrPAbBiZrWUJAi2/P5mw="; 19 }; 20 21 checkInputs = [ 22 pytestCheckHook 23 pytest-benchmark 24 pytest-mock 25 ]; 26 27 disabledTests = [ 28 # Disable CLI tests 29 "test_cli_main_basic" 30 "test_cli_main_verbose" 31 "test_cli_main_debug" 32 "test_cli_multiple_debug_levels" 33 # Disable test that require network access 34 "test_uuid_lanscan_iface" 35 ]; 36 37 pythonImportsCheck = [ 38 "getmac" 39 ]; 40 41 meta = with lib; { 42 description = "Python package to get the MAC address of network interfaces and hosts on the local network"; 43 homepage = "https://github.com/GhostofGoes/getmac"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ colemickens ]; 46 }; 47}