python312Packages.peblar: init at 0.3.3 (#371229)

This commit is contained in:
Fabian Affolter
2025-03-04 00:41:31 +01:00
committed by GitHub
3 changed files with 82 additions and 1 deletions
@@ -0,0 +1,77 @@
{
lib,
aiohttp,
aresponses,
awesomeversion,
backoff,
buildPythonPackage,
fetchFromGitHub,
hatchling,
mashumaro,
orjson,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
syrupy,
typer,
yarl,
zeroconf,
}:
buildPythonPackage rec {
pname = "peblar";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-peblar";
tag = "v${version}";
hash = "sha256-cHb/VTaa7tkePqV7eLpDSxrnY8hAnjshwtwyWmJnt/4=";
};
postPatch = ''
# Upstream doesn't set a version for GitHub releases
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
'';
build-system = [ hatchling ];
dependencies = [
aiohttp
awesomeversion
backoff
mashumaro
orjson
yarl
];
optional-dependencies = {
cli = [
typer
zeroconf
];
};
nativeCheckInputs = [
aresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
syrupy
];
pythonImportsCheck = [ "peblar" ];
meta = {
description = "Python client for Peblar EV chargers";
homepage = "https://github.com/frenck/python-peblar";
changelog = "https://github.com/frenck/python-peblar/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
@@ -4214,7 +4214,8 @@
];
"peblar" =
ps: with ps; [
]; # missing inputs: peblar
peblar
];
"peco" =
ps: with ps; [
peco
@@ -7144,6 +7145,7 @@
"palazzetti"
"panasonic_viera"
"panel_custom"
"peblar"
"peco"
"pegel_online"
"permobil"
+2
View File
@@ -10362,6 +10362,8 @@ self: super: with self; {
pebble = callPackage ../development/python-modules/pebble { };
peblar = callPackage ../development/python-modules/peblar { };
pecan = callPackage ../development/python-modules/pecan { };
peco = callPackage ../development/python-modules/peco { };