1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "aioblescan"; 11 version = "0.2.14"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "frawau"; 18 repo = "aioblescan"; 19 tag = version; 20 hash = "sha256-JeA9jX566OSRiejdnlifbcNGm0J0C+xzA6zXDUyZ6jc="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "aioblescan" ]; 26 27 meta = with lib; { 28 description = "Library to listen for BLE advertized packets"; 29 mainProgram = "aioblescan"; 30 homepage = "https://github.com/frawau/aioblescan"; 31 changelog = "https://github.com/frawau/aioblescan/releases/tag/${version}"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}