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}