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

30 lines
626 B
Nix
Raw Normal View History

2018-10-25 14:48:10 +00:00
{ stdenv
, buildPythonPackage
, fetchPypi
, ipaddress
, python
}:
buildPythonPackage rec {
2020-07-31 08:56:40 +00:00
version = "0.1.7";
2018-10-25 14:48:10 +00:00
pname = "ifaddr";
src = fetchPypi {
inherit pname version;
2020-07-31 08:56:40 +00:00
sha256 = "1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94";
2018-10-25 14:48:10 +00:00
};
propagatedBuildInputs = [ ipaddress ];
checkPhase = ''
2019-02-23 00:56:41 +00:00
${python.interpreter} -m unittest discover
2018-10-25 14:48:10 +00:00
'';
meta = with stdenv.lib; {
homepage = "https://github.com/pydron/ifaddr";
2018-10-25 14:48:10 +00:00
description = "Enumerates all IP addresses on all network adapters of the system";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}