2021-02-05 22:04:14 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jmespath
|
2021-11-17 19:55:53 +00:00
|
|
|
, pythonOlder
|
2021-02-05 22:04:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysma";
|
2022-04-06 16:21:27 +00:00
|
|
|
version = "0.6.11";
|
2021-11-17 19:55:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-02-05 22:04:14 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-06 16:21:27 +00:00
|
|
|
sha256 = "sha256-x0sFJAdueSny0XoaOYbYLN8ZRS5B/iEVT62mqd4Voe4=";
|
2021-02-05 22:04:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
attrs
|
|
|
|
jmespath
|
|
|
|
];
|
|
|
|
|
|
|
|
# pypi does not contain tests and GitHub archive not available
|
|
|
|
doCheck = false;
|
2021-11-17 19:55:53 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pysma"
|
|
|
|
];
|
2021-02-05 22:04:14 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interacting with SMA Solar's WebConnect";
|
|
|
|
homepage = "https://github.com/kellerza/pysma";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|