Files
nixpkgs/pkgs/development/python-modules/mac-vendor-lookup/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
851 B
Nix

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