From 05a45efb0a8b2a5fb01713a5e4830d2e87fff0bf Mon Sep 17 00:00:00 2001 From: aliriza Date: Thu, 2 Jan 2025 09:38:41 +0300 Subject: [PATCH] requests fix --- dev/python/py3-certifi/ympbuild | 29 +++++++++++++++++++++++++++++ dev/python/py3-chardet/ympbuild | 29 +++++++++++++++++++++++++++++ dev/python/py3-idna/ympbuild | 29 +++++++++++++++++++++++++++++ dev/python/py3-requests/ympbuild | 2 +- 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 dev/python/py3-certifi/ympbuild create mode 100644 dev/python/py3-chardet/ympbuild create mode 100644 dev/python/py3-idna/ympbuild diff --git a/dev/python/py3-certifi/ympbuild b/dev/python/py3-certifi/ympbuild new file mode 100644 index 00000000..4c21f035 --- /dev/null +++ b/dev/python/py3-certifi/ympbuild @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +name='py3-certifi' +release='1' +version='2024.12.14' +url='https://github.com/certifi/pyhon-certifi' +description='(Python Distribution) A carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts.' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('MIT') +source=("https://github.com/certifi/python-certifi/archive/refs/tags/$version.tar.gz") +depends=(python) +makedepends=(py3-setuptools) +sha256sums=('d9045cb5da5ee9678db7020990535a41dfb0779999adbedb375ae7dfdeb4b894') +group=(dev.python) +uses=() +arch=('x86_64') + +cd "python-certifi"-$version + + +build(){ + python3 -m build +} + +package(){ + python3 -m installer --destdir ${DESTDIR} dist/*.whl +} + + diff --git a/dev/python/py3-chardet/ympbuild b/dev/python/py3-chardet/ympbuild new file mode 100644 index 00000000..9f6bf7b6 --- /dev/null +++ b/dev/python/py3-chardet/ympbuild @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +name='py3-chardet' +release='1' +version='5.2.0' +url='https://github.com/chardet/chardet' +description='https://github.com/chardet/chardet/tags' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('MIT') +source=("https://github.com/chardet/chardet/archive/refs/tags/$version.tar.gz") +depends=(python) +makedepends=(py3-setuptools) +sha256sums=('07249fb7bdf1fc669e2fb0eba58afe18fe6c5e3187ee806f22969f0e809a32dd') +group=(dev.python) +uses=() +arch=('x86_64') + +cd "chardet"-$version + + +build(){ + python3 -m build +} + +package(){ + python3 -m installer --destdir ${DESTDIR} dist/*.whl +} + + diff --git a/dev/python/py3-idna/ympbuild b/dev/python/py3-idna/ympbuild new file mode 100644 index 00000000..5d31131d --- /dev/null +++ b/dev/python/py3-idna/ympbuild @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +name='py3-idna' +release='1' +version='3.10' +url='https://github.com/kjd/idna' +description=' Internationalized Domain Names for Python (IDNA 2008 and UTS #46)' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('MIT') +source=("https://github.com/kjd/idna/archive/refs/tags/v$version.tar.gz") +depends=(python) +makedepends=(py3-setuptools) +sha256sums=('04f6b013c384deca20a165a4cdf36823465a81c2bb914c40b543802d39e1cb1a') +group=(dev.python) +uses=() +arch=('x86_64') + +cd "idna"-$version + + +build(){ + python3 -m build +} + +package(){ + python3 -m installer --destdir ${DESTDIR} dist/*.whl +} + + diff --git a/dev/python/py3-requests/ympbuild b/dev/python/py3-requests/ympbuild index 7bbc8d6d..afb8c749 100644 --- a/dev/python/py3-requests/ympbuild +++ b/dev/python/py3-requests/ympbuild @@ -8,7 +8,7 @@ email='akarsu@protonmail.com' maintainer='akarsu' license=('Apache') source=("https://github.com/psf/requests/archive/refs/tags/v${version}.tar.gz") -depends=() +depends=(py3-certifi py3-idna py3-urllib3 python) makedepends=(py3-build py3-wheel py3-setuptools) md5sums=('fb734df6b273e30f68f9346dbf72aa34') group=(dev.python)