From 4dc34642e3667e2e009ef833b35235c9bb08c4d0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Apr 2021 16:44:12 +0200 Subject: [PATCH] python3Packages.webexteamssdk: init at 1.6 --- .../python-modules/webexteamssdk/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/webexteamssdk/default.nix diff --git a/pkgs/development/python-modules/webexteamssdk/default.nix b/pkgs/development/python-modules/webexteamssdk/default.nix new file mode 100644 index 000000000000..21c9e352bf0d --- /dev/null +++ b/pkgs/development/python-modules/webexteamssdk/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7489fc234387..7d22f221412c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8834,6 +8834,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 { };