1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6, httpx 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "telegraph"; 12 version = "2.1.0"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 repo = "telegraph"; 17 owner = "python273"; 18 sha256 = "ChlQJu4kHkXUf4gOtW5HS+ThP3eQL7LsyANeS/10pLo="; 19 rev = "da629de7c00c3b8b0c7ab8ef4bf23caf419a3c6c"; 20 }; 21 22 checkInputs = [ pytestCheckHook ]; 23 24 pytestFlagsArray = [ "tests/" ]; 25 26 disabledTests = [ 27 "test_get_page" 28 ]; 29 30 doCheck = true; 31 32 propagatedBuildInputs = [ 33 requests 34 ]; 35 36 passthru.optional-dependencies = { 37 aio = [ 38 httpx 39 ]; 40 }; 41 42 43 pythonImportsCheck = [ "telegraph" ]; 44 45 meta = with lib; { 46 homepage = "https://github.com/python273/telegraph"; 47 description = "Telegraph API wrapper"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ gp2112 ]; 50 }; 51} 52