2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
2023-08-04 22:07:22 +00:00
|
|
|
, async-interrupt
|
2022-08-12 12:06:08 +00:00
|
|
|
, async-timeout
|
|
|
|
, bleak
|
|
|
|
, bleak-retry-connector
|
|
|
|
, buildPythonPackage
|
2023-03-24 00:07:29 +00:00
|
|
|
, cryptography
|
2022-08-12 12:06:08 +00:00
|
|
|
, fetchFromGitHub
|
2023-04-29 16:46:19 +00:00
|
|
|
, lru-dict
|
2022-08-12 12:06:08 +00:00
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yalexs-ble";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.4.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bdraco";
|
|
|
|
repo = pname;
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-u6Mhqt6DcPiini8EvtqKoVAYUwb31hvWfCNb/sbqvWQ=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-08-04 22:07:22 +00:00
|
|
|
async-interrupt
|
2022-08-12 12:06:08 +00:00
|
|
|
async-timeout
|
|
|
|
bleak
|
|
|
|
bleak-retry-connector
|
2023-03-24 00:07:29 +00:00
|
|
|
cryptography
|
2023-04-29 16:46:19 +00:00
|
|
|
lru-dict
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace " --cov=yalexs_ble --cov-report=term-missing:skip-covered" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"yalexs_ble"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for Yale BLE devices";
|
|
|
|
homepage = "https://github.com/bdraco/yalexs-ble";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/bdraco/yalexs-ble/blob/v${version}/CHANGELOG.md";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|