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

26 lines
725 B
Nix

{ 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 ];
};
}