Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 26 lines 725 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub 2, pytest, pytest-benchmark, pytest-mock }: 3 4buildPythonPackage rec { 5 pname = "getmac"; 6 version = "0.8.2"; 7 8 src = fetchFromGitHub { 9 owner = "GhostofGoes"; 10 repo = "getmac"; 11 rev = version; 12 sha256 = "08d4iv5bjl1s4i9qhzf3pzjgj1rgbwi0x26qypf3ycgdj0a6gvh2"; 13 }; 14 15 checkInputs = [ pytest pytest-benchmark pytest-mock ]; 16 checkPhase = '' 17 pytest --ignore tests/test_cli.py 18 ''; 19 20 meta = with lib; { 21 homepage = "https://github.com/GhostofGoes/getmac"; 22 description = "Pure-Python package to get the MAC address of network interfaces and hosts on the local network."; 23 license = licenses.mit; 24 maintainers = with maintainers; [ colemickens ]; 25 }; 26}