Merge pull request #112077 from fabaff/pysma

This commit is contained in:
Sandro 2021-02-06 00:24:58 +01:00 committed by GitHub
commit 90322e2e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,36 @@
{ lib
, aiohttp
, attrs
, buildPythonPackage
, fetchPypi
, jmespath
, async-timeout
}:
buildPythonPackage rec {
pname = "pysma";
version = "0.3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1awcsbk14i2aw01f7b7hrmpn9q6vr9v6la0i9n7ldv1h8rzq6j16";
};
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 ];
};
}

View File

@ -744,7 +744,7 @@
"slack" = ps: with ps; [ ]; # missing inputs: slackclient
"sleepiq" = ps: with ps; [ ]; # missing inputs: sleepyq
"slide" = ps: with ps; [ ]; # missing inputs: goslide-api
"sma" = ps: with ps; [ ]; # missing inputs: pysma
"sma" = ps: with ps; [ pysma ];
"smappee" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pysmappee
"smart_meter_texas" = ps: with ps; [ ]; # missing inputs: smart-meter-texas
"smarthab" = ps: with ps; [ ]; # missing inputs: smarthab

View File

@ -5929,6 +5929,8 @@ in {
pyslurm = callPackage ../development/python-modules/pyslurm { slurm = pkgs.slurm; };
pysma = callPackage ../development/python-modules/pysma { };
pysmb = callPackage ../development/python-modules/pysmb { };
pysmbc = callPackage ../development/python-modules/pysmbc { inherit (pkgs) pkg-config; };