1{ lib 2, aioconsole 3, bleak 4, buildPythonPackage 5, dbus-next 6, fetchFromGitHub 7, numpy 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "bless"; 14 version = "0.2.5"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "kevincar"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-+rnMLqNfhIJASCKkIfOKpVil3S/d8BcMxnLHmdOcRIY="; 24 }; 25 26 propagatedBuildInputs = [ 27 bleak 28 dbus-next 29 ]; 30 31 nativeCheckInputs = [ 32 aioconsole 33 numpy 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "bless" 39 ]; 40 41 meta = with lib; { 42 description = "Library for creating a BLE Generic Attribute Profile (GATT) server"; 43 homepage = "https://github.com/kevincar/bless"; 44 changelog = "https://github.com/kevincar/bless/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}