2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, aioconsole
|
|
|
|
, bleak
|
|
|
|
, buildPythonPackage
|
2022-10-06 18:32:54 +00:00
|
|
|
, dbus-next
|
2022-08-21 13:32:41 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bless";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.2.5";
|
2022-08-21 13:32:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kevincar";
|
|
|
|
repo = pname;
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+rnMLqNfhIJASCKkIfOKpVil3S/d8BcMxnLHmdOcRIY=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bleak
|
2022-10-06 18:32:54 +00:00
|
|
|
dbus-next
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aioconsole
|
|
|
|
numpy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bless"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for creating a BLE Generic Attribute Profile (GATT) server";
|
|
|
|
homepage = "https://github.com/kevincar/bless";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/kevincar/bless/releases/tag/v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|