1{ lib, buildPythonPackage, fetchFromGitHub }:
2
3buildPythonPackage rec {
4 pname = "ifconfig-parser";
5 version = "0.0.5";
6
7 src = fetchFromGitHub {
8 owner = "KnightWhoSayNi";
9 repo = pname;
10 rev = "4921ac9d6be6244b062d082c164f5a5e69522478";
11 sha256 = "07hbkbr1qspr7qgzldkaslzc6ripj5zlif12d4fk5j801yhvnxjd";
12 };
13
14 checkPhase = ''
15 export PYTHONPATH=$PYTHONPATH:$(pwd)/ifconfigparser:$(pwd)/ifconfigparser/tests
16 python -m unittest -v test_ifconfig_parser.TestIfconfigParser
17 '';
18
19 meta = with lib; {
20 description = "Unsophisticated python package for parsing raw output of ifconfig.";
21 homepage = "https://github.com/KnightWhoSayNi/ifconfig-parser";
22 license = licenses.mit;
23 maintainers = with maintainers; [ atemu ];
24 };
25}