1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 version = "0.2.0"; 9 pname = "ifaddr"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "sha256-zAy/yqv3ZdRFlYJfuWqZuxLHlxa3O0QzDqOO4rDErtQ="; 14 }; 15 16 checkInputs = [ 17 pytestCheckHook 18 ]; 19 20 pythonImportsCheck = [ "ifaddr" ]; 21 22 meta = with lib; { 23 homepage = "https://github.com/pydron/ifaddr"; 24 description = "Enumerates all IP addresses on all network adapters of the system"; 25 license = licenses.mit; 26 maintainers = [ maintainers.costrouc ]; 27 }; 28}