Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.zeversolar: init at 0.3.2 #351416

Merged
merged 3 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/retry2/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
48 changes: 48 additions & 0 deletions pkgs/development/python-modules/zeversolar/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4958,7 +4958,8 @@
xmltodict
];
"zeversolar" = ps: with ps; [
]; # missing inputs: zeversolar
zeversolar
];
"zha" = ps: with ps; [
aiohasupervisor
pillow
Expand Down Expand Up @@ -5878,6 +5879,7 @@
"zamg"
"zeroconf"
"zerproc"
"zeversolar"
"zha"
"zodiac"
"zone"
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13673,6 +13673,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 { };
Expand Down Expand Up @@ -17933,6 +17935,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 { };
Expand Down