Merge pull request #118809 from fabaff/webexteamssdk

This commit is contained in:
Martin Weinelt 2021-04-09 18:01:05 +02:00 committed by GitHub
commit 79d2bf4c84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, pyjwt
, requests
, requests_toolbelt
}:
buildPythonPackage rec {
pname = "webexteamssdk";
version = "1.6";
src = fetchFromGitHub {
owner = "CiscoDevNet";
repo = pname;
rev = "v${version}";
sha256 = "0bw28ag1iqyqlxz83m4qb3r94kipv5mpf3bsvc8zv5vh4dv52bp2";
};
propagatedBuildInputs = [
future
pyjwt
requests
requests_toolbelt
];
# Tests require a Webex Teams test domain
doCheck = false;
pythonImportsCheck = [ "webexteamssdk" ];
meta = with lib; {
description = "Python module for Webex Teams APIs";
homepage = "https://github.com/CiscoDevNet/webexteamssdk";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -116,7 +116,7 @@
"circuit" = ps: with ps; [ ]; # missing inputs: circuit-webhook
"cisco_ios" = ps: with ps; [ pexpect ];
"cisco_mobility_express" = ps: with ps; [ ciscomobilityexpress ];
"cisco_webex_teams" = ps: with ps; [ ]; # missing inputs: webexteamssdk
"cisco_webex_teams" = ps: with ps; [ webexteamssdk ];
"citybikes" = ps: with ps; [ ];
"clementine" = ps: with ps; [ ]; # missing inputs: python-clementine-remote
"clickatell" = ps: with ps; [ ];

View file

@ -8852,6 +8852,8 @@ in {
webencodings = callPackage ../development/python-modules/webencodings { };
webexteamssdk = callPackage ../development/python-modules/webexteamssdk { };
webhelpers = callPackage ../development/python-modules/webhelpers { };
webob = callPackage ../development/python-modules/webob { };