mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 15:26:34 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
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";
|
|
};
|
|
}
|