Commit 83beb334 authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.zeversolarlocal: drop as unmaintained (5 years)

parent 90e0b24f
Loading
Loading
Loading
Loading
+0 −66
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchpatch,
  flit-core,
  dos2unix,
  httpx,
  pytest-asyncio,
  pytest-cov-stub,
  pytest-mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "zeversolarlocal";
  version = "1.1.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ExZy5k5RE7k+D0lGmuIkGWrWQ+m24K2oqbUEg4BAVuY=";
  };

  build-system = [
    flit-core
    dos2unix
  ];

  dependencies = [ httpx ];

  nativeCheckInputs = [
    pytest-asyncio
    pytest-cov-stub
    pytest-mock
    pytestCheckHook
  ];

  # the patch below won't apply unless we fix the line endings
  prePatch = ''
    dos2unix pyproject.toml
  '';

  patches = [
    # Raise the flit-core limit
    # https://github.com/sander76/zeversolarlocal/pull/4
    (fetchpatch {
      url = "https://github.com/sander76/zeversolarlocal/commit/bff072ea046de07eced77bc79eb8e90dfef1f53f.patch";
      hash = "sha256-tzFCwPzhAfwVfN5mLY/DMwRv7zGzx3ScBe+kKzkYcvo=";
    })
  ];

  disabledTests = [
    # Test requires network access
    "test_httpx_timeout"
  ];

  pythonImportsCheck = [ "zeversolarlocal" ];

  meta = {
    description = "Python module to interact with Zeversolar inverters";
    homepage = "https://github.com/sander76/zeversolarlocal";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -545,6 +545,7 @@ mapAliases {
  zc-buildout221 = throw "'zc-buildout221' has been renamed to/replaced by 'zc-buildout'"; # Converted to throw 2025-10-29
  zc_lockfile = throw "'zc_lockfile' has been renamed to/replaced by 'zc-lockfile'"; # Converted to throw 2025-10-29
  zetup = "'zetup' has been removed because it is unmaintained"; # Added 2026-01-19
  zeversolarlocal = throw "'zeversolarlocal' has been removed because it is unmaintained"; # Added 2026-01-28
  zope_component = throw "'zope_component' has been renamed to/replaced by 'zope-component'"; # Converted to throw 2025-10-29
  zope_configuration = throw "'zope_configuration' has been renamed to/replaced by 'zope-configuration'"; # Converted to throw 2025-10-29
  zope_contenttype = throw "'zope_contenttype' has been renamed to/replaced by 'zope-contenttype'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -21134,8 +21134,6 @@ self: super: with self; {
  zeversolar = callPackage ../development/python-modules/zeversolar { };
  zeversolarlocal = callPackage ../development/python-modules/zeversolarlocal { };
  zfec = callPackage ../development/python-modules/zfec { };
  zha = callPackage ../development/python-modules/zha { };