From 4a0f7c97d986f7de6450d1813fc4668f6cd27e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 23 Apr 2023 12:57:32 -0700 Subject: [PATCH] python310Packages.forecast-solar: 2.3.0 -> 3.0.0 Diff: https://github.com/home-assistant-libs/forecast_solar/compare/refs/tags/2.3.0...3.0.0 Changelog: https://github.com/home-assistant-libs/forecast_solar/releases/tag/3.0.0 --- .../python-modules/forecast-solar/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/forecast-solar/default.nix b/pkgs/development/python-modules/forecast-solar/default.nix index a56eab06bbad..9f4b199c5671 100644 --- a/pkgs/development/python-modules/forecast-solar/default.nix +++ b/pkgs/development/python-modules/forecast-solar/default.nix @@ -5,17 +5,20 @@ , aiodns , aiohttp , backports-zoneinfo +, pytestCheckHook }: buildPythonPackage rec { pname = "forecast-solar"; - version = "2.3.0"; + version = "3.0.0"; + + format = "setuptools"; src = fetchFromGitHub { owner = "home-assistant-libs"; repo = "forecast_solar"; rev = "refs/tags/${version}"; - hash = "sha256-1xRbTOeBHzLmf0FJwsrg/4+Z2Fs7uwbQwS2Tm41mNRk="; + hash = "sha256-Go0DF2qyVyGVYEeoEEuxsSR9Ge8Pg4S77zM1HL83ELc="; }; PACKAGE_VERSION = version; @@ -27,11 +30,12 @@ buildPythonPackage rec { backports-zoneinfo ]; - # no unit tests implemented - doCheck = false; - pythonImportsCheck = [ "forecast_solar" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + meta = with lib; { description = "Asynchronous Python client for getting forecast solar information"; homepage = "https://github.com/home-assistant-libs/forecast_solar";