2021-02-19 17:18:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-01-19 09:11:09 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "getmac";
|
|
|
|
version = "0.8.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GhostofGoes";
|
2021-02-19 17:18:11 +00:00
|
|
|
repo = pname;
|
2020-01-19 09:11:09 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "08d4iv5bjl1s4i9qhzf3pzjgj1rgbwi0x26qypf3ycgdj0a6gvh2";
|
|
|
|
};
|
|
|
|
|
2021-02-19 17:18:11 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "getmac" ];
|
2020-01-19 09:11:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-19 17:18:11 +00:00
|
|
|
description = "Python package to get the MAC address of network interfaces and hosts on the local network";
|
2020-01-19 09:11:09 +00:00
|
|
|
homepage = "https://github.com/GhostofGoes/getmac";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
|
|
|
};
|
|
|
|
}
|