3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/ifaddr/default.nix
2019-02-23 02:08:16 +01:00

31 lines
638 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, ipaddress
, python
, pythonOlder
}:
buildPythonPackage rec {
version = "0.1.6";
pname = "ifaddr";
src = fetchPypi {
inherit pname version;
sha256 = "c19c64882a7ad51a394451dabcbbed72e98b5625ec1e79789924d5ea3e3ecb93";
};
propagatedBuildInputs = [ ipaddress ];
checkPhase = ''
${python.interpreter} -m unittest discover
'';
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 ];
};
}