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