Commit eff6999c authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.zeversolar: init at 0.3.2

Module to interact with the local CGI provided by ZeverSolar

https://github.com/kvanzuijlen/zeversolar
parent af559ecc
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -17935,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 { };