159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyjwt,
|
|
pythonOlder,
|
|
requests,
|
|
requests-toolbelt,
|
|
poetry-core,
|
|
poetry-dynamic-versioning,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "webexteamssdk";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CiscoDevNet";
|
|
repo = "webexteamssdk";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ENAUUicVO/Br7k+RFHCGzQ7BIG0CP7jTYM3tzs5EAZQ=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
poetry-dynamic-versioning
|
|
];
|
|
|
|
dependencies = [
|
|
pyjwt
|
|
requests
|
|
requests-toolbelt
|
|
];
|
|
|
|
# Tests require a Webex Teams test domain
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "webexpythonsdk" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for Webex Teams APIs";
|
|
homepage = "https://github.com/CiscoDevNet/webexteamssdk";
|
|
changelog = "https://github.com/WebexCommunity/WebexPythonSDK/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|