Files
nixpkgs/pkgs/development/python-modules/ifconfig-parser/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
}:
buildPythonPackage {
pname = "ifconfig-parser";
version = "0.0.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "KnightWhoSayNi";
repo = "ifconfig-parser";
rev = "4921ac9d6be6244b062d082c164f5a5e69522478";
hash = "sha256-TXa7oQ8AyTIdaSK4SH+RN2bDPtVqNvofPvlqHPKaCx4=";
};
build-system = [ setuptools ];
checkPhase = ''
export PYTHONPATH=$PYTHONPATH:$(pwd)/ifconfigparser:$(pwd)/ifconfigparser/tests
python -m unittest -v test_ifconfig_parser.TestIfconfigParser
'';
pythonImportsCheck = [ "ifconfigparser" ];
meta = {
description = "Module for parsing raw output of ifconfig";
homepage = "https://github.com/KnightWhoSayNi/ifconfig-parser";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ atemu ];
};
}