1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 aiofiles, 6 aiohttp, 7}: 8 9buildPythonPackage { 10 pname = "mac-vendor-lookup"; 11 version = "0.1.12"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "bauerj"; 16 repo = "mac_vendor_lookup"; 17 rev = "90dbea48f8a9d567b5f9039ebd151ddfe7d12a19"; 18 hash = "sha256-mPPJDrWdyvkTdb4WfeTNYwuC+Ek9vH7ORKRTREg+vK8="; 19 }; 20 21 postPatch = '' 22 sed -i '/mac-vendors.txt/d' setup.py 23 ''; 24 25 propagatedBuildInputs = [ 26 aiofiles 27 aiohttp 28 ]; 29 30 doCheck = false; # no tests 31 32 pythonImportsCheck = [ "mac_vendor_lookup" ]; 33 34 meta = with lib; { 35 description = "Find the vendor for a given MAC address"; 36 mainProgram = "mac_vendor_lookup"; 37 homepage = "https://github.com/bauerj/mac_vendor_lookup"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ hexa ]; 40 }; 41}