forked from mirrors/nixpkgs
37 lines
726 B
Nix
37 lines
726 B
Nix
{ lib
|
|
, aiohttp
|
|
, attrs
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jmespath
|
|
, async-timeout
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysma";
|
|
version = "0.4.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-vriMnJFS7yfTyDT1f4sx1xEBTQjqc4ZHmkdHp1vcd+Q=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|