mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
python3Packages.besen: init at 0.3.4
This commit is contained in:
48
pkgs/development/python-modules/besen/default.nix
Normal file
48
pkgs/development/python-modules/besen/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user