python3Packages.besen: init at 0.3.4

This commit is contained in:
Jamie Magee
2026-09-04 15:53:50 -07:00
parent e1e3aee692
commit 2217cffa16
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
{
lib,
bleak-retry-connector,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "besen";
version = "0.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "moryoav";
repo = "besen";
tag = "v${finalAttrs.version}";
hash = "sha256-abWF9v1snIscua2PzesuxYS4IYKYrq8dSfjbnzT4P/A=";
};
build-system = [ setuptools ];
dependencies = [ bleak-retry-connector ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
# The other tests are for the bundled Home Assistant integration
pytestFlags = [
"tests/test_client.py"
"tests/test_models.py"
"tests/test_protocol.py"
];
pythonImportsCheck = [ "besen" ];
meta = {
description = "Async Python client for Besen EV chargers over BLE";
homepage = "https://github.com/moryoav/besen";
changelog = "https://github.com/moryoav/besen/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})

View File

@@ -2357,6 +2357,8 @@ self: super: with self; {
berkeleydb = callPackage ../development/python-modules/berkeleydb { };
besen = callPackage ../development/python-modules/besen { };
bespon = callPackage ../development/python-modules/bespon { };
betacode = callPackage ../development/python-modules/betacode { };