From 6967734863fda2f611590e533150535243739eaa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 28 May 2023 23:40:29 +0200 Subject: [PATCH] python311Packages.solax: add format: - disable on unsupported Python releases --- .../python-modules/solax/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/solax/default.nix b/pkgs/development/python-modules/solax/default.nix index 17e03f9a0c8..abb29e78328 100644 --- a/pkgs/development/python-modules/solax/default.nix +++ b/pkgs/development/python-modules/solax/default.nix @@ -6,6 +6,7 @@ , pytest-cov , pytest-httpserver , pytestCheckHook +, pythonOlder , setuptools-scm , voluptuous }: @@ -13,15 +14,23 @@ buildPythonPackage rec { pname = "solax"; version = "0.3.1"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; hash = "sha256-kseU6JK00GTPyqdWku2ceT5/mChMVVPgEEib3BmjI/g="; }; - nativeBuildInputs = [ setuptools-scm ]; + nativeBuildInputs = [ + setuptools-scm + ]; - propagatedBuildInputs = [ aiohttp voluptuous ]; + propagatedBuildInputs = [ + aiohttp + voluptuous + ]; nativeCheckInputs = [ pytest-asyncio @@ -30,7 +39,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "solax" ]; + pythonImportsCheck = [ + "solax" + ]; meta = with lib; { description = "Python wrapper for the Solax Inverter API";