pythonPackages.getmac: init at 0.8.2

This commit is contained in:
Cole Mickens 2020-01-19 01:11:09 -08:00 committed by Jon
parent ad6e8aa7c3
commit 817d6c8ab2
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchFromGitHub
, pytest, pytest-benchmark, pytest-mock }:
buildPythonPackage rec {
pname = "getmac";
version = "0.8.2";
src = fetchFromGitHub {
owner = "GhostofGoes";
repo = "getmac";
rev = version;
sha256 = "08d4iv5bjl1s4i9qhzf3pzjgj1rgbwi0x26qypf3ycgdj0a6gvh2";
};
checkInputs = [ pytest pytest-benchmark pytest-mock ];
checkPhase = ''
pytest --ignore tests/test_cli.py
'';
meta = with lib; {
homepage = "https://github.com/GhostofGoes/getmac";
description = "Pure-Python package to get the MAC address of network interfaces and hosts on the local network.";
license = licenses.mit;
maintainers = with maintainers; [ colemickens ];
};
}

View File

@ -692,6 +692,8 @@ in {
geoip2 = callPackage ../development/python-modules/geoip2 { }; geoip2 = callPackage ../development/python-modules/geoip2 { };
getmac = callPackage ../development/python-modules/getmac { };
gidgethub = callPackage ../development/python-modules/gidgethub { }; gidgethub = callPackage ../development/python-modules/gidgethub { };
gin-config = callPackage ../development/python-modules/gin-config { }; gin-config = callPackage ../development/python-modules/gin-config { };