depot/third_party/nixpkgs/pkgs/development/python-modules/ifaddr/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
626 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, ipaddress
, python
}:
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 ];
};
}