Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ad6e8aa7c3f6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 817d6c8ab297
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 21, 2020

  1. pythonPackages.getmac: init at 0.8.2

    colemickens authored and Jon committed Jan 21, 2020
    Copy the full SHA
    817d6c8 View commit details
Showing with 28 additions and 0 deletions.
  1. +26 −0 pkgs/development/python-modules/getmac/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/getmac/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -692,6 +692,8 @@ in {

geoip2 = callPackage ../development/python-modules/geoip2 { };

getmac = callPackage ../development/python-modules/getmac { };

gidgethub = callPackage ../development/python-modules/gidgethub { };

gin-config = callPackage ../development/python-modules/gin-config { };