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