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