nixpkgs-suyu/pkgs/development/python-modules/ifaddr/default.nix

30 lines
624 B
Nix
Raw Normal View History

2018-10-25 16:48:10 +02:00
{ stdenv
, buildPythonPackage
, fetchPypi
, ipaddress
, python
}:
buildPythonPackage rec {
2019-02-23 01:56:41 +01:00
version = "0.1.6";
2018-10-25 16:48:10 +02:00
pname = "ifaddr";
src = fetchPypi {
inherit pname version;
2019-02-23 01:56:41 +01:00
sha256 = "c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93";
2018-10-25 16:48:10 +02:00
};
propagatedBuildInputs = [ ipaddress ];
checkPhase = ''
2019-02-23 01:56:41 +01:00
${python.interpreter} -m unittest discover
2018-10-25 16:48:10 +02:00
'';
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 ];
};
}