nixpkgs/pkgs/development/python-modules/solax/default.nix
Fabian Affolter 6967734863
python311Packages.solax: add format:
- disable on unsupported Python releases
2023-05-28 23:40:29 +02:00

53 lines
895 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, pytest-asyncio
, pytest-cov
, pytest-httpserver
, pytestCheckHook
, pythonOlder
, setuptools-scm
, voluptuous
}:
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
];
propagatedBuildInputs = [
aiohttp
voluptuous
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov
pytest-httpserver
pytestCheckHook
];
pythonImportsCheck = [
"solax"
];
meta = with lib; {
description = "Python wrapper for the Solax Inverter API";
homepage = "https://github.com/squishykid/solax";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}