1{ lib 2, buildPythonPackage 3, fetchPypi 4, ipaddress 5, python 6}: 7 8buildPythonPackage rec { 9 version = "0.1.7"; 10 pname = "ifaddr"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94"; 15 }; 16 17 propagatedBuildInputs = [ ipaddress ]; 18 19 checkPhase = '' 20 ${python.interpreter} -m unittest discover 21 ''; 22 23 meta = with lib; { 24 homepage = "https://github.com/pydron/ifaddr"; 25 description = "Enumerates all IP addresses on all network adapters of the system"; 26 license = licenses.mit; 27 maintainers = [ maintainers.costrouc ]; 28 }; 29}