python312Packages.zeversolar: init at 0.3.2 (#351416)

This commit is contained in:
Martin Weinelt 2024-10-26 16:16:31 +02:00 committed by GitHub
commit e5dde60682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 97 additions and 1 deletions

View File

@ -0,0 +1,42 @@
{
lib,
buildPythonPackage,
decorator,
fetchFromGitHub,
pbr,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "retry2";
version = "0.9.5";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "eSAMTrade";
repo = "retry";
rev = "refs/tags/${version}";
hash = "sha256-RxOEekkmMRl2OQW2scFWbMQiFXcH0sbd+k9R8uul0uY=";
};
env.PBR_VERSION = version;
build-system = [ pbr ];
dependencies = [ decorator ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "retry" ];
meta = {
description = "Retry decorator";
homepage = "https://github.com/eSAMTrade/retry";
changelog = "https://github.com/eSAMTrade/retry/blob/${src.rev}/ChangeLog";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -0,0 +1,48 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-mock,
pytestCheckHook,
pythonOlder,
requests,
retry2,
}:
buildPythonPackage rec {
pname = "zeversolar";
version = "0.3.2";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "kvanzuijlen";
repo = "zeversolar";
rev = "refs/tags/${version}";
hash = "sha256-HnF21B7k2MmugMjGIF2EKwwXJWD/WdDvPdz1oaPSS5Y=";
};
build-system = [ poetry-core ];
dependencies = [
requests
retry2
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "zeversolar" ];
meta = {
description = "Module to interact with the local CGI provided by ZeverSolar";
homepage = "https://github.com/kvanzuijlen/zeversolar";
changelog = "https://github.com/kvanzuijlen/zeversolar/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -4958,7 +4958,8 @@
xmltodict
];
"zeversolar" = ps: with ps; [
]; # missing inputs: zeversolar
zeversolar
];
"zha" = ps: with ps; [
aiohasupervisor
pillow
@ -5878,6 +5879,7 @@
"zamg"
"zeroconf"
"zerproc"
"zeversolar"
"zha"
"zodiac"
"zone"

View File

@ -13679,6 +13679,8 @@ self: super: with self; {
retry-decorator = callPackage ../development/python-modules/retry-decorator { };
retry2 = callPackage ../development/python-modules/retry2 { };
retrying = callPackage ../development/python-modules/retrying { };
returns = callPackage ../development/python-modules/returns { };
@ -17945,6 +17947,8 @@ self: super: with self; {
zetup = callPackage ../development/python-modules/zetup { };
zeversolar = callPackage ../development/python-modules/zeversolar { };
zeversolarlocal = callPackage ../development/python-modules/zeversolarlocal { };
zfec = callPackage ../development/python-modules/zfec { };