2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jmespath
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysma";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.7.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-hIrdT0b9XKw1UoPZtQQ7IaW+HV8wuA9Rwoo8XYdGyw8=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
attrs
|
|
|
|
jmespath
|
|
|
|
];
|
|
|
|
|
|
|
|
# pypi does not contain tests and GitHub archive not available
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pysma"
|
|
|
|
];
|
2021-02-13 14:23:35 +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 ];
|
|
|
|
};
|
|
|
|
}
|