Merge pull request #189887 from gp2112/python/telegraph

This commit is contained in:
Martin Weinelt 2022-09-06 14:54:55 +02:00 committed by GitHub
commit aed746f00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 0 deletions

View File

@ -4909,6 +4909,15 @@
fingerprint = "5214 2D39 A7CE F8FA 872B CA7F DE62 E1E2 A614 5556";
}];
};
gp2112 = {
email = "me@guip.dev";
github = "gp2112";
githubId = 26512375;
name = "Guilherme Paixão";
keys = [{
fingerprint = "4382 7E28 86E5 C34F 38D5 7753 8C81 4D62 5FBD 99D1";
}];
};
gpanders = {
name = "Gregory Anders";
email = "greg@gpanders.com";

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

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