diff --git a/srcpkgs/python-requests/template b/srcpkgs/python-requests/template deleted file mode 100644 index 6ad6fd32dd5..00000000000 --- a/srcpkgs/python-requests/template +++ /dev/null @@ -1,28 +0,0 @@ -# Template file for 'python-requests' -pkgname=python-requests -version=2.26.0 -revision=2 -wrksrc="requests-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="ca-certificates python-chardet python-urllib3 python-idna" -short_desc="Python2 HTTP library for human beings" -maintainer="Alessio Sergi " -license="Apache-2.0" -homepage="https://python-requests.org/" -changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md" -distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz" -checksum=b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7 -make_check=no # tests are broken for python2 requests - -post_patch() { - vsed -i '/certifi/d' setup.py -} - -python3-requests_package() { - depends="ca-certificates python3-charset-normalizer python3-urllib3 python3-idna" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - } -} diff --git a/srcpkgs/python3-requests b/srcpkgs/python3-requests deleted file mode 120000 index 9af2ed02a93..00000000000 --- a/srcpkgs/python3-requests +++ /dev/null @@ -1 +0,0 @@ -python-requests \ No newline at end of file diff --git a/srcpkgs/python-requests/patches/use-system-cacerts.patch b/srcpkgs/python3-requests/patches/use-system-cacerts.patch similarity index 100% rename from srcpkgs/python-requests/patches/use-system-cacerts.patch rename to srcpkgs/python3-requests/patches/use-system-cacerts.patch diff --git a/srcpkgs/python3-requests/template b/srcpkgs/python3-requests/template new file mode 100644 index 00000000000..8e710e6f7b6 --- /dev/null +++ b/srcpkgs/python3-requests/template @@ -0,0 +1,21 @@ +# Template file for 'python3-requests' +pkgname=python3-requests +version=2.27.1 +revision=1 +wrksrc="requests-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="ca-certificates python3-charset-normalizer python3-urllib3 python3-idna" +checkdepends="python3-pytest $depends python3-trustme python3-pytest-httpbin + python3-pytest-mock python3-pysocks" +short_desc="Python3 HTTP library for human beings" +maintainer="Alessio Sergi " +license="Apache-2.0" +homepage="https://python-requests.org/" +changelog="https://raw.githubusercontent.com/psf/requests/master/HISTORY.md" +distfiles="${PYPI_SITE}/r/requests/requests-${version}.tar.gz" +checksum=68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 + +post_patch() { + vsed -i '/certifi/d' setup.py +}