tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.ifconfig-parser: refactor
Fabian Affolter
2 years ago
4e3c8707
47f6e1ae
+21
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
ifconfig-parser
default.nix
+21
-5
pkgs/development/python-modules/ifconfig-parser/default.nix
···
1
-
{ lib, buildPythonPackage, fetchFromGitHub }:
0
0
0
0
0
2
3
buildPythonPackage rec {
4
pname = "ifconfig-parser";
5
version = "0.0.5";
6
-
format = "setuptools";
0
0
7
8
src = fetchFromGitHub {
9
owner = "KnightWhoSayNi";
10
-
repo = pname;
11
rev = "4921ac9d6be6244b062d082c164f5a5e69522478";
12
-
sha256 = "07hbkbr1qspr7qgzldkaslzc6ripj5zlif12d4fk5j801yhvnxjd";
13
};
0
0
0
0
0
14
15
checkPhase = ''
16
export PYTHONPATH=$PYTHONPATH:$(pwd)/ifconfigparser:$(pwd)/ifconfigparser/tests
17
python -m unittest -v test_ifconfig_parser.TestIfconfigParser
18
'';
19
0
0
0
0
20
meta = with lib; {
21
-
description = "Unsophisticated python package for parsing raw output of ifconfig.";
22
homepage = "https://github.com/KnightWhoSayNi/ifconfig-parser";
23
license = licenses.mit;
24
maintainers = with maintainers; [ atemu ];
···
1
+
{ lib
2
+
, buildPythonPackage
3
+
, fetchFromGitHub
4
+
, setuptools
5
+
, pythonOlder
6
+
}:
7
8
buildPythonPackage rec {
9
pname = "ifconfig-parser";
10
version = "0.0.5";
11
+
pyproject = true;
12
+
13
+
disabled = pythonOlder "3.7";
14
15
src = fetchFromGitHub {
16
owner = "KnightWhoSayNi";
17
+
repo = "ifconfig-parser";
18
rev = "4921ac9d6be6244b062d082c164f5a5e69522478";
19
+
hash = "sha256-TXa7oQ8AyTIdaSK4SH+RN2bDPtVqNvofPvlqHPKaCx4=";
20
};
21
+
22
+
build-system = [
23
+
setuptools
24
+
];
25
+
26
27
checkPhase = ''
28
export PYTHONPATH=$PYTHONPATH:$(pwd)/ifconfigparser:$(pwd)/ifconfigparser/tests
29
python -m unittest -v test_ifconfig_parser.TestIfconfigParser
30
'';
31
32
+
pythonImportsCheck = [
33
+
"ifconfigparser"
34
+
];
35
+
36
meta = with lib; {
37
+
description = "Module for parsing raw output of ifconfig";
38
homepage = "https://github.com/KnightWhoSayNi/ifconfig-parser";
39
license = licenses.mit;
40
maintainers = with maintainers; [ atemu ];