36 lines
739 B
Nix
36 lines
739 B
Nix
{ lib
|
|
, aiohttp
|
|
, attrs
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jmespath
|
|
, async-timeout
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysma";
|
|
version = "0.6.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9490d72596db64d339aefee56940e058fddb52c2f0f5d5cce3c39ef94f39dbb9";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
async-timeout
|
|
attrs
|
|
jmespath
|
|
];
|
|
|
|
# pypi does not contain tests and GitHub archive not available
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pysma" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|