Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions depends/python-certifi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=python-certifi
PKG_VERSION:=2025.8.3
PKG_RELEASE:=2

PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
PKG_LICENSE:=MPL-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:certifi:certifi

PYPI_NAME:=certifi
PKG_HASH:=e564105f78ded564e3ae7c923924435e1daa7463faeab5bb932bc53ffae63407

HOST_BUILD_DEPENDS:= \
python3/host \
python-build/host \
python-installer/host \
python-wheel/host \
python-setuptools/host
PKG_BUILD_DEPENDS:=python-setuptools/host

include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
include $(TOPDIR)/feeds/packages/lang/python/python3-host-build.mk

define Package/python3-certifi
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Python package for Mozilla's CA Bundle
URL:=https://github.com/certifi/python-certifi
DEPENDS:=+python3-light +python3-urllib
endef

define Package/python3-certifi/description
Certifi provides Mozilla's carefully curated collection of Root
Certificates for validating the trustworthiness of SSL certificates
while verifying the identity of TLS hosts.
endef

$(eval $(call Py3Package,python3-certifi))
$(eval $(call BuildPackage,python3-certifi))
$(eval $(call BuildPackage,python3-certifi-src))
$(eval $(call HostBuild))
18 changes: 18 additions & 0 deletions depends/python-certifi/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

case "$1" in
*-src)
;;
python3-certifi)
BUNDLE=$(python3 -m certifi) || {
echo "Failed to run the certfi module script. Exit status=$?." >&2
echo "Output='$BUNDLE'" >&2
exit 1
}
ls -l "$BUNDLE"
;;
*)
echo "Unexpected package '$1'" >&2
exit 1
;;
esac
Loading