nixpkgs/pkgs/development/python-modules/getmac/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1002 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-benchmark
, pytest-mock
, pytestCheckHook
}:
2020-01-19 09:11:09 +00:00
buildPythonPackage rec {
pname = "getmac";
2021-12-11 17:32:45 +00:00
version = "0.8.3";
format = "setuptools";
2020-01-19 09:11:09 +00:00
src = fetchFromGitHub {
owner = "GhostofGoes";
repo = pname;
2020-01-19 09:11:09 +00:00
rev = version;
2021-12-11 17:32:45 +00:00
sha256 = "sha256-X4uuYisyobCxhoywaSXBZjVxrPAbBiZrWUJAi2/P5mw=";
2020-01-19 09:11:09 +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"
];
2021-12-11 17:32:45 +00:00
pythonImportsCheck = [
"getmac"
];
2020-01-19 09:11:09 +00:00
meta = with lib; {
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 ];
};
}