blob: a27db889c8873f2ecbb7f9ed8891f16179bff793 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 ];
};
}
|