02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
41 lines
798 B
Nix
41 lines
798 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytest-httpserver
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "solax";
|
|
version = "0.2.10";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-DUXaz9BF1NOG+RSeks9CxLGDz/wWwpZBxwWh4MQapio=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ aiohttp voluptuous ];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|