2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aioconsole,
|
|
|
|
bleak,
|
|
|
|
buildPythonPackage,
|
|
|
|
dbus-next,
|
|
|
|
fetchFromGitHub,
|
|
|
|
numpy,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bless";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.2.6";
|
|
|
|
pyproject = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kevincar";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "bless";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-dAdA+d75iE6v6t4mfgvwhRsIARLW+IqCGmaMABaDlZg=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/pysetupdi/d" setup.py
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
aioconsole
|
|
|
|
numpy
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest-asyncio
|
2022-08-21 13:32:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "bless" ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|