1{
2 lib,
3 rel,
4 buildKodiAddon,
5 fetchzip,
6 addonUpdateScript,
7 certifi,
8 chardet,
9 idna,
10 urllib3,
11}:
12buildKodiAddon rec {
13 pname = "requests";
14 namespace = "script.module.requests";
15 version = "2.31.0";
16
17 src = fetchzip {
18 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
19 sha256 = "sha256-05BSD5aoN2CTnjqaSKYMb93j5nIfLvpJHyeQsK++sTw=";
20 };
21
22 propagatedBuildInputs = [
23 certifi
24 chardet
25 idna
26 urllib3
27 ];
28
29 passthru = {
30 pythonPath = "lib";
31 updateScript = addonUpdateScript {
32 attrPath = "kodi.packages.requests";
33 };
34 };
35
36 meta = with lib; {
37 homepage = "http://python-requests.org";
38 description = "Python HTTP for Humans";
39 license = licenses.asl20;
40 teams = [ teams.kodi ];
41 };
42}