diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-02-17 08:03:40 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-17 08:38:19 +0100 |
commit | 899ba4ac54f28815926bd1e573d7fd7d0d786db6 (patch) | |
tree | 88d613b4cbaf4b8cf4d69a34a69839d050b4d37b /dev-python/requests-ntlm | |
parent | dev-python/jupyter_client: Bump to 8.0.3 (diff) | |
download | gentoo-899ba4ac54f28815926bd1e573d7fd7d0d786db6.tar.gz gentoo-899ba4ac54f28815926bd1e573d7fd7d0d786db6.tar.bz2 gentoo-899ba4ac54f28815926bd1e573d7fd7d0d786db6.zip |
dev-python/requests-ntlm: Bump to 1.2.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/requests-ntlm')
-rw-r--r-- | dev-python/requests-ntlm/Manifest | 1 | ||||
-rw-r--r-- | dev-python/requests-ntlm/metadata.xml | 2 | ||||
-rw-r--r-- | dev-python/requests-ntlm/requests-ntlm-1.2.0.ebuild | 50 |
3 files changed, 52 insertions, 1 deletions
diff --git a/dev-python/requests-ntlm/Manifest b/dev-python/requests-ntlm/Manifest index 61c7a4bc33ad..1a1d3cb85fbb 100644 --- a/dev-python/requests-ntlm/Manifest +++ b/dev-python/requests-ntlm/Manifest @@ -1 +1,2 @@ +DIST requests-ntlm-1.2.0.gh.tar.gz 14540 BLAKE2B 0b9dd72680c6e67dc6e4f0a3eef3b9fa0cc03c71010238a0e7ef8a48b59c57e12846040975f7eef7710113f372cd1e1628e5a9be0eca8e7a287a9cfd0765ebf0 SHA512 230eb6c8a90e8745a3c969114f81d2559aa0f411b79b54747d21c6c28572f7d61c024c47a831777c2d85fb8b09af7fee667d3a3abf318473c97e727c5f2d7943 DIST requests_ntlm-1.1.0.tar.gz 5183 BLAKE2B 190a75d3f82ae2216e05295f855aa072f98908ef8a0d4dda68d6e39239655ccf175c707af137290cd78cf622c0a3d1741a0afbb1363f8b170f408c34a2682fa6 SHA512 9a74ecd6e4ed5c5e4381d2ee3fb9ff233352b49baa5fae4e0ecc30aaad12fc7a5c1b9dd936f35d4a3815ae7f6ec5bb8581e84128d63ff0e961181408daddb807 diff --git a/dev-python/requests-ntlm/metadata.xml b/dev-python/requests-ntlm/metadata.xml index cb401c68b149..7f4b01eebc5e 100644 --- a/dev-python/requests-ntlm/metadata.xml +++ b/dev-python/requests-ntlm/metadata.xml @@ -10,7 +10,7 @@ <name>Python</name> </maintainer> <upstream> - <remote-id type="pypi">requests_ntlm</remote-id> + <remote-id type="pypi">requests-ntlm</remote-id> <remote-id type="github">requests/requests-ntlm</remote-id> </upstream> </pkgmetadata> diff --git a/dev-python/requests-ntlm/requests-ntlm-1.2.0.ebuild b/dev-python/requests-ntlm/requests-ntlm-1.2.0.ebuild new file mode 100644 index 000000000000..81473a0deacb --- /dev/null +++ b/dev-python/requests-ntlm/requests-ntlm-1.2.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="HTTP NTLM authentication using the requests library" +HOMEPAGE=" + https://github.com/requests/requests-ntlm/ + https://pypi.org/project/requests-ntlm/ +" +SRC_URI=" + https://github.com/requests/requests-ntlm/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +SLOT="0" +LICENSE="ISC" +KEYWORDS="~amd64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/cryptography-1.3[${PYTHON_USEDEP}] + >=dev-python/pyspnego-0.1.6[${PYTHON_USEDEP}] + >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/flask[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local ts_pid test_ret + + "${EPYTHON}" -m tests.test_server &> "${T}"/test-server.log & + ts_pid=${!} + + nonfatal epytest tests/unit + test_ret=${?} + + kill "${ts_pid}" + [[ ${test_ret} -ne 0 ]] && die "Tests failed with ${EPYTHON}" +} |