Revert "python312Packages.pyvicare: drop"

This reverts commit 6d51ba7470.

Restore pyvicare, as home-assistant switched back to it.
This commit is contained in:
Martin Weinelt 2024-11-06 22:55:42 +01:00
parent 4acbaa55d2
commit 10877199d0
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
3 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,50 @@
{
lib,
authlib,
buildPythonPackage,
fetchFromGitHub,
pkce,
pytestCheckHook,
pythonOlder,
simplejson,
}:
buildPythonPackage rec {
pname = "pyvicare";
version = "2.32.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "somm15";
repo = "PyViCare";
rev = "refs/tags/${version}";
hash = "sha256-qK5JCaCL+gbgNcBo5IjhlRrXD1IhA1B56hmcjvPie6Y=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "version_config=True," 'version="${version}",' \
--replace "'setuptools-git-versioning<1.8.0'" ""
'';
propagatedBuildInputs = [
authlib
pkce
];
nativeCheckInputs = [
pytestCheckHook
simplejson
];
pythonImportsCheck = [ "PyViCare" ];
meta = with lib; {
description = "Python Library to access Viessmann ViCare API";
homepage = "https://github.com/somm15/PyViCare";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -549,7 +549,6 @@ mapAliases ({
pyunifiprotect = throw "pyunifiprotect has disappeared from GitHub and PyPI, use uiprotect instead"; # added 2024-09-17
pyutilib = throw "pyutilib has been removed, since it is no longer maintained"; # added 2024-07-28
pyvcf = throw "pyvcf has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2023-05-19
pyvicare = pyvicare-neo; # added 2024-08-31
PyVirtualDisplay = pyvirtualdisplay; # added 2023-02-19
pywick = throw "pywick has been removed, since it is no longer maintained"; # added 2023-07-01
pyxb = throw "pyxb has been removed, its last release was in 2017 and it has finally been archived in April 2023."; # added 2024-01-05

View File

@ -13213,6 +13213,8 @@ self: super: with self; {
pyvex = callPackage ../development/python-modules/pyvex { };
pyvicare = callPackage ../development/python-modules/pyvicare { };
pyvicare-neo = callPackage ../development/python-modules/pyvicare-neo { };
pyvirtualdisplay = callPackage ../development/python-modules/pyvirtualdisplay { };