2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
aiofiles,
|
|
|
|
aiohttp,
|
2022-11-04 12:27:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mac-vendor-lookup";
|
|
|
|
version = "0.1.12";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bauerj";
|
|
|
|
repo = "mac_vendor_lookup";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "90dbea48f8a9d567b5f9039ebd151ddfe7d12a19";
|
|
|
|
hash = "sha256-mPPJDrWdyvkTdb4WfeTNYwuC+Ek9vH7ORKRTREg+vK8=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/mac-vendors.txt/d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mac_vendor_lookup" ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Find the vendor for a given MAC address";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mac_vendor_lookup";
|
2022-11-04 12:27:35 +00:00
|
|
|
homepage = "https://github.com/bauerj/mac_vendor_lookup";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|