1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, ipaddress
5, python
6}:
7
8buildPythonPackage rec {
9 version = "0.1.6";
10 pname = "ifaddr";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93";
15 };
16
17 propagatedBuildInputs = [ ipaddress ];
18
19 checkPhase = ''
20 ${python.interpreter} -m unittest discover
21 '';
22
23 meta = with stdenv.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}