python3Packages.telegraph: init at 2.1.0

This commit is contained in:
gp2112 2022-09-05 15:12:13 -03:00
parent b6a94490a4
commit 991d1aa0a8
No known key found for this signature in database
GPG Key ID: 485D18519AB49875
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, httpx
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "telegraph";
version = "2.1.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
repo = "telegraph";
owner = "python273";
sha256 = "ChlQJu4kHkXUf4gOtW5HS+ThP3eQL7LsyANeS/10pLo=";
rev = "da629de7c00c3b8b0c7ab8ef4bf23caf419a3c6c";
};
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/" ];
disabledTests = [
"test_get_page"
];
doCheck = true;
propagatedBuildInputs = [
requests
];
passthru.optional-dependencies = {
aio = [
httpx
];
};
pythonImportsCheck = [ "telegraph" ];
meta = with lib; {
homepage = "https://github.com/python273/telegraph";
description = "Telegraph API wrapper";
license = licenses.mit;
maintainers = with maintainers; [ gp2112 ];
};
}

View File

@ -10662,6 +10662,8 @@ in {
telegram = callPackage ../development/python-modules/telegram { };
telegraph = callPackage ../development/python-modules/telegraph { };
telethon = callPackage ../development/python-modules/telethon {
inherit (pkgs) openssl;
};