diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2020-01-19 01:11:09 -0800 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-01-20 18:17:29 -0800 |
commit | 817d6c8ab2977b87a446e743febeb5d628617a7e (patch) | |
tree | f06344919b13af8680e0a029a2919610d90686c3 /pkgs | |
parent | ad6e8aa7c3f6ebc01c4d8879e738b67d5a9d5024 (diff) | |
download | nixpkgs-817d6c8ab2977b87a446e743febeb5d628617a7e.tar nixpkgs-817d6c8ab2977b87a446e743febeb5d628617a7e.tar.gz nixpkgs-817d6c8ab2977b87a446e743febeb5d628617a7e.tar.bz2 nixpkgs-817d6c8ab2977b87a446e743febeb5d628617a7e.tar.lz nixpkgs-817d6c8ab2977b87a446e743febeb5d628617a7e.tar.xz nixpkgs-817d6c8ab2977b87a446e743febeb5d628617a7e.tar.zst nixpkgs-817d6c8ab2977b87a446e743febeb5d628617a7e.zip |
pythonPackages.getmac: init at 0.8.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/getmac/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/getmac/default.nix b/pkgs/development/python-modules/getmac/default.nix new file mode 100644 index 00000000000..51ce0ef0503 --- /dev/null +++ b/pkgs/development/python-modules/getmac/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d761f7a8dab..34f9d5e3d1d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }; |