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