Merge pull request #114155 from fabaff/pysmappee

This commit is contained in:
Martin Weinelt 2021-02-24 01:45:52 +01:00 committed by GitHub
commit 83dba0edb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cachetools
, paho-mqtt
, pytz
, requests
, requests_oauthlib
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysmappee";
version = "0.2.17";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "smappee";
repo = pname;
rev = version;
sha256 = "00274fbclj5kmwxi2bfx4913r4l0y8qvkfcc9d7ryalvf8jq24k6";
};
propagatedBuildInputs = [
cachetools
paho-mqtt
pytz
requests
requests_oauthlib
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pysmappee" ];
meta = with lib; {
description = "Python Library for the Smappee dev API";
homepage = "https://github.com/smappee/pysmappee";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -745,7 +745,7 @@
"sleepiq" = ps: with ps; [ ]; # missing inputs: sleepyq "sleepiq" = ps: with ps; [ ]; # missing inputs: sleepyq
"slide" = ps: with ps; [ ]; # missing inputs: goslide-api "slide" = ps: with ps; [ ]; # missing inputs: goslide-api
"sma" = ps: with ps; [ pysma ]; "sma" = ps: with ps; [ pysma ];
"smappee" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pysmappee "smappee" = ps: with ps; [ aiohttp-cors pysmappee ];
"smart_meter_texas" = ps: with ps; [ ]; # missing inputs: smart-meter-texas "smart_meter_texas" = ps: with ps; [ ]; # missing inputs: smart-meter-texas
"smarthab" = ps: with ps; [ ]; # missing inputs: smarthab "smarthab" = ps: with ps; [ ]; # missing inputs: smarthab
"smartthings" = ps: with ps; [ aiohttp-cors hass-nabucasa ]; # missing inputs: pysmartapp pysmartthings "smartthings" = ps: with ps; [ aiohttp-cors hass-nabucasa ]; # missing inputs: pysmartapp pysmartthings

View File

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