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.2";
12
13 src = fetchFromGitHub {
14 owner = "GhostofGoes";
15 repo = pname;
16 rev = version;
17 sha256 = "08d4iv5bjl1s4i9qhzf3pzjgj1rgbwi0x26qypf3ycgdj0a6gvh2";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 pytest-benchmark
23 pytest-mock
24 ];
25
26 disabledTests = [
27 # Disable CLI tests
28 "test_cli_main_basic"
29 "test_cli_main_verbose"
30 "test_cli_main_debug"
31 "test_cli_multiple_debug_levels"
32 # Disable test that require network access
33 "test_uuid_lanscan_iface"
34 ];
35
36 pythonImportsCheck = [ "getmac" ];
37
38 meta = with lib; {
39 description = "Python package to get the MAC address of network interfaces and hosts on the local network";
40 homepage = "https://github.com/GhostofGoes/getmac";
41 license = licenses.mit;
42 maintainers = with maintainers; [ colemickens ];
43 };
44}