mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
Diff: https://github.com/GhostofGoes/getmac/compare/0.9.5...0.9.6 Changelog: https://github.com/GhostofGoes/getmac/blob/0.9.6/CHANGELOG.md
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
py,
|
|
pytest-benchmark,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "getmac";
|
|
version = "0.9.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GhostofGoes";
|
|
repo = "getmac";
|
|
tag = version;
|
|
hash = "sha256-dyuu2P7I4Ce5KJtreTGWYIv0UnSn9b4Y6JfcsBDeD/0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-benchmark
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# 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";
|
|
};
|
|
}
|