python311Packages.solax: add format:

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-05-28 23:40:29 +02:00 committed by GitHub
parent 19970af608
commit 6967734863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@
, pytest-cov , pytest-cov
, pytest-httpserver , pytest-httpserver
, pytestCheckHook , pytestCheckHook
, pythonOlder
, setuptools-scm , setuptools-scm
, voluptuous , voluptuous
}: }:
@ -13,15 +14,23 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "solax"; pname = "solax";
version = "0.3.1"; version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-kseU6JK00GTPyqdWku2ceT5/mChMVVPgEEib3BmjI/g="; hash = "sha256-kseU6JK00GTPyqdWku2ceT5/mChMVVPgEEib3BmjI/g=";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ aiohttp voluptuous ]; propagatedBuildInputs = [
aiohttp
voluptuous
];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
@ -30,7 +39,9 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "solax" ]; pythonImportsCheck = [
"solax"
];
meta = with lib; { meta = with lib; {
description = "Python wrapper for the Solax Inverter API"; description = "Python wrapper for the Solax Inverter API";