Skip to content

Commit

Permalink
python312Packages.zeversolar: init at 0.3.2 (#351416)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Oct 26, 2024
2 parents 71de335 + 55774dc commit e5dde60
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 1 deletion.
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 @@ -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 { };
Expand Down Expand Up @@ -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 { };
Expand Down

0 comments on commit e5dde60

Please sign in to comment.