summary refs log tree commit diff
path: root/pkgs/development/python-modules/ifaddr/default.nix
blob: e9f5fed49a34ea2db9cc4ebac7dbec6235c80d34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv
, buildPythonPackage
, fetchPypi
, ipaddress
, python
}:

buildPythonPackage rec {
  version = "0.1.6";
  pname = "ifaddr";

  src = fetchPypi {
    inherit pname version;
    sha256 = "c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93";
  };

  propagatedBuildInputs = [ ipaddress ];

  checkPhase = ''
   ${python.interpreter} -m unittest discover
  '';

  meta = with stdenv.lib; {
    homepage = "https://github.com/pydron/ifaddr";
    description = "Enumerates all IP addresses on all network adapters of the system";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}