python3Packages.mac-vendor-lookup: init at 0.1.12

This commit is contained in:
Martin Weinelt 2022-11-05 12:29:48 +01:00
parent 171e8e0c89
commit a975823d5b
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiofiles
, aiohttp
}:
buildPythonPackage rec {
pname = "mac-vendor-lookup";
version = "0.1.12";
format = "setuptools";
src = fetchFromGitHub {
owner = "bauerj";
repo = "mac_vendor_lookup";
rev = "5b57faac0c5a701a7e18085e331853397b68c07c";
hash = "sha256-F/aiMs+J4bAesr6mKy+tYVjAjZ3l9vyHxV7zaaB6KbA=";
};
postPatch = ''
sed -i '/mac-vendors.txt/d' setup.py
'';
propagatedBuildInputs = [
aiofiles
aiohttp
];
doCheck = false; # no tests
pythonImportsCheck = [
"mac_vendor_lookup"
];
meta = with lib; {
description = "Find the vendor for a given MAC address";
homepage = "https://github.com/bauerj/mac_vendor_lookup";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -5431,6 +5431,8 @@ self: super: with self; {
mac_alias = callPackage ../development/python-modules/mac_alias { };
mac-vendor-lookup = callPackage ../development/python-modules/mac-vendor-lookup { };
macfsevents = callPackage ../development/python-modules/macfsevents {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
};