python3Packages.knx-telegram-store: init at 0.4.0

This commit is contained in:
Martin Weinelt 2026-07-04 23:25:45 +02:00
commit 6f8e12d290
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,61 @@
{
aiosqlite,
asyncpg,
buildPythonPackage,
fetchFromGitHub,
lib,
pytest-asyncio,
pytestCheckHook,
pytest-cov-stub,
setuptools,
sqlalchemy,
}:
buildPythonPackage (finalAttrs: {
pname = "knx-telegram-store";
version = "0.4.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "XKNX";
repo = "knx-telegram-store";
tag = "v${finalAttrs.version}";
hash = "sha256-t4Bmm5n9+XSBiR2Rvm6UKAKweH9fQuZwaNqG1W2q3Co=";
};
build-system = [
setuptools
];
optional-dependencies = {
postgres = [
asyncpg
sqlalchemy
];
sqlite = [
aiosqlite
sqlalchemy
];
};
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
]
++ finalAttrs.passthru.optional-dependencies.sqlite;
pythonImportsCheck = [
"knx_telegram_store"
];
meta = {
description = "Standalone, host-agnostic Python library for KNX telegram persistence";
homepage = "https://github.com/XKNX/knx-telegram-store";
changelog = "https://github.com/XKNX/knx-telegram-store/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
})

View file

@ -8633,6 +8633,8 @@ self: super: with self; {
knx-frontend = callPackage ../development/python-modules/knx-frontend { };
knx-telegram-store = callPackage ../development/python-modules/knx-telegram-store { };
kokoro = callPackage ../development/python-modules/kokoro { };
kombu = callPackage ../development/python-modules/kombu { };