{ lib, authlib, buildPythonPackage, fetchFromGitHub, poetry-core, requests, pytest-cov-stub, pytestCheckHook, simplejson, }: buildPythonPackage rec { pname = "pyvicare"; version = "2.36.0"; pyproject = true; src = fetchFromGitHub { owner = "openviess"; repo = "PyViCare"; rev = "refs/tags/${version}"; hash = "sha256-WkdW1sSA/nVHK8Pp2sOkj3qYc8se4MT6WM4AoQvI5i8="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'version = "0.1.0"' 'version = "${version}"' ''; build-system = [ poetry-core ]; dependencies = [ authlib requests ]; nativeCheckInputs = [ pytest-cov-stub pytestCheckHook ]; pythonImportsCheck = [ "PyViCare" ]; meta = with lib; { changelog = "https://github.com/openviess/PyViCare/releases/tag/${version}"; description = "Python Library to access Viessmann ViCare API"; homepage = "https://github.com/somm15/PyViCare"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; }