mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-10 22:30:59 +00:00
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
})
|