2021-03-19 17:17:44 +00:00
|
|
|
{ lib, buildKodiAddon, fetchzip, addonUpdateScript, certifi, chardet, idna, urllib3 }:
|
|
|
|
buildKodiAddon rec {
|
|
|
|
pname = "requests";
|
|
|
|
namespace = "script.module.requests";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.25.1+matrix.1";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "00qhykizvspzfwgl7qz9cyxrazs54jgin40g49v5nzmjq3qf62hb";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
chardet
|
|
|
|
idna
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
passthru = {
|
|
|
|
pythonPath = "lib";
|
|
|
|
updateScript = addonUpdateScript {
|
|
|
|
attrPath = "kodi.packages.requests";
|
|
|
|
};
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://python-requests.org";
|
|
|
|
description = "Python HTTP for Humans";
|
|
|
|
license = licenses.asl20;
|
2021-03-23 19:22:30 +00:00
|
|
|
maintainers = teams.kodi.members;
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
}
|