Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #2

Closed
wants to merge 2 commits into from
Closed
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
11 changes: 6 additions & 5 deletions lang/python/python-certifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-certifi
PKG_VERSION:=2022.9.24
PKG_VERSION:=2023.7.22
PKG_RELEASE:=1

PKG_MAINTAINER:=Eneas U de Queiroz <[email protected]>
PKG_LICENSE:=MPL-2.0
PKG_LICENSE_FILES:=LICENSE

PYPI_NAME:=certifi
PKG_HASH:=0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14
PKG_HASH:=539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
Expand All @@ -25,13 +25,14 @@ define Package/python3-certifi
SECTION:=lang
CATEGORY:=Languages
TITLE:=Python package for Mozilla's CA Bundle
URL:=http://certifi.io/
URL:=https://github.com/certifi/python-certifi
DEPENDS:=+python3-light +python3-urllib
endef

define Package/python3-certifi/description
Certifi is a carefully curated collection of Root Certificates for validating the
trustworthiness of SSL certificates while verifying the identity of TLS hosts.
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))
Expand Down
21 changes: 21 additions & 0 deletions lang/python/python-certifi/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/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
}
[ -f "$BUNDLE" ] || {
echo "Bundle file '$BUNDLE' not found." >&2
exit 1
}
;;
*)
echo "Unexpected package '$1'"
exit 1
;;
esac