Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / ifaddr / default.nix
blob35bafd67fa977987f7c093567b286f2404217351
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , ipaddress
5 , python
6 }:
8 buildPythonPackage rec {
9   version = "0.1.7";
10   pname = "ifaddr";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "1f9e8a6ca6f16db5a37d3356f07b6e52344f6f9f7e806d618537731669eb1a94";
15   };
17   propagatedBuildInputs = [ ipaddress ];
19   checkPhase = ''
20    ${python.interpreter} -m unittest discover
21   '';
23   meta = with lib; {
24     homepage = "https://github.com/pydron/ifaddr";
25     description = "Enumerates all IP addresses on all network adapters of the system";
26     license = licenses.mit;
27     maintainers = [ maintainers.costrouc ];
28   };