1 { lib, rel, buildKodiAddon, fetchzip, addonUpdateScript, cacert }:
4 namespace = "script.module.certifi";
8 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
9 sha256 = "sha256-NQbjx+k9fnQMYLLMR5+N5NSuDcXEzZjlhGPA3qSmjfI=";
13 # Add support for NIX_SSL_CERT_FILE
18 # Use our system-wide ca-bundle instead of the bundled one
19 ln -snvf "${cacert}/etc/ssl/certs/ca-bundle.crt" "lib/certifi/cacert.pem"
22 propagatedNativeBuildInputs = [
23 # propagate cacerts setup-hook to set up `NIX_SSL_CERT_FILE`
29 updateScript = addonUpdateScript {
30 attrPath = "kodi.packages.certifi";
35 homepage = "https://certifi.io";
36 description = "Python package for providing Mozilla's CA Bundle";
37 license = licenses.mpl20;
38 maintainers = teams.kodi.members;