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

30 lines
616 B
Nix
Raw Normal View History

{ lib
2018-10-25 16:48:10 +02:00
, buildPythonPackage
, fetchPypi
, ipaddress
, python
}:
buildPythonPackage rec {
2020-07-31 10:56:40 +02:00
version = "0.1.7";
2018-10-25 16:48:10 +02:00
pname = "ifaddr";
src = fetchPypi {
inherit pname version;
2020-07-31 10:56:40 +02:00
sha256 = "1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94";
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 lib; {
homepage = "https://github.com/pydron/ifaddr";
2018-10-25 16:48:10 +02:00
description = "Enumerates all IP addresses on all network adapters of the system";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}