2021-03-16 02:59:08 +01:00
|
|
|
{ lib, buildKodiAddon, fetchzip, addonUpdateScript, certifi, chardet, idna, urllib3 }:
|
2021-03-16 01:33:38 +01:00
|
|
|
buildKodiAddon rec {
|
|
|
|
pname = "requests";
|
|
|
|
namespace = "script.module.requests";
|
|
|
|
version = "2.22.0+matrix.1";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip";
|
|
|
|
sha256 = "09576galkyzhw8fhy2h4aablm5rm2v08g0mdmg9nn55dlxhkkljq";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
chardet
|
|
|
|
idna
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2021-03-16 02:59:08 +01:00
|
|
|
passthru.updateScript = addonUpdateScript {
|
|
|
|
attrPath = "kodi.packages.requests";
|
|
|
|
};
|
|
|
|
|
2021-03-16 01:33:38 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://python-requests.org";
|
|
|
|
description = "Python HTTP for Humans";
|
|
|
|
license = licenses.asl20;
|
2021-03-19 00:52:44 +01:00
|
|
|
maintainers = teams.kodi.members;
|
2021-03-16 01:33:38 +01:00
|
|
|
};
|
|
|
|
}
|