nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiofiles,
7 aiohttp,
8}:
9
10buildPythonPackage (finalAttrs: {
11 pname = "mac-vendor-lookup";
12 version = "0.1.15";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "bauerj";
17 repo = "mac_vendor_lookup";
18 tag = finalAttrs.version;
19 hash = "sha256-RLCEyDalwQUVmcZdVPN1cyKLIPbWcZfjzIkClUZCeJU=";
20 };
21
22 postPatch = ''
23 sed -i '/mac-vendors.txt/d' setup.py
24 '';
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 aiofiles
30 aiohttp
31 ];
32
33 doCheck = false; # no tests
34
35 pythonImportsCheck = [ "mac_vendor_lookup" ];
36
37 meta = {
38 description = "Find the vendor for a given MAC address";
39 mainProgram = "mac_vendor_lookup";
40 homepage = "https://github.com/bauerj/mac_vendor_lookup";
41 license = lib.licenses.asl20;
42 maintainers = with lib.maintainers; [ hexa ];
43 };
44})