Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 30 lines 638 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, ipaddress 5, python 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 version = "0.1.6"; 11 pname = "ifaddr"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93"; 16 }; 17 18 propagatedBuildInputs = [ ipaddress ]; 19 20 checkPhase = '' 21 ${python.interpreter} -m unittest discover 22 ''; 23 24 meta = with stdenv.lib; { 25 homepage = https://github.com/pydron/ifaddr; 26 description = "Enumerates all IP addresses on all network adapters of the system"; 27 license = licenses.mit; 28 maintainers = [ maintainers.costrouc ]; 29 }; 30}