diff --git a/pkgs/development/python-modules/ifconfig-parser/default.nix b/pkgs/development/python-modules/ifconfig-parser/default.nix new file mode 100644 index 000000000000..cb3fb0fded5d --- /dev/null +++ b/pkgs/development/python-modules/ifconfig-parser/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub }: + +buildPythonPackage rec { + pname = "ifconfig-parser"; + version = "0.0.5"; + + src = fetchFromGitHub { + owner = "KnightWhoSayNi"; + repo = pname; + rev = "4921ac9d6be6244b062d082c164f5a5e69522478"; + sha256 = "07hbkbr1qspr7qgzldkaslzc6ripj5zlif12d4fk5j801yhvnxjd"; + }; + + checkPhase = '' + export PYTHONPATH=$PYTHONPATH:$(pwd)/ifconfigparser:$(pwd)/ifconfigparser/tests + python -m unittest -v test_ifconfig_parser.TestIfconfigParser + ''; + + meta = with stdenv.lib; { + description = "Unsophisticated python package for parsing raw output of ifconfig."; + homepage = "https://github.com/KnightWhoSayNi/ifconfig-parser"; + license = licenses.mit; + maintainers = with maintainers; [ atemu ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 53b7eba5f30c..92dff2435d72 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3926,6 +3926,8 @@ in { ifaddr = callPackage ../development/python-modules/ifaddr { }; + ifconfig-parser = callPackage ../development/python-modules/ifconfig-parser { }; + imagecorruptions = callPackage ../development/python-modules/imagecorruptions { }; imageio = callPackage ../development/python-modules/imageio { };