diff options
Diffstat (limited to 'dev-python/requests-ntlm')
-rw-r--r-- | dev-python/requests-ntlm/Manifest | 2 | ||||
-rw-r--r-- | dev-python/requests-ntlm/requests-ntlm-1.3.0.ebuild | 50 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/requests-ntlm/Manifest b/dev-python/requests-ntlm/Manifest index 5ef7e94359da..3953d727e71d 100644 --- a/dev-python/requests-ntlm/Manifest +++ b/dev-python/requests-ntlm/Manifest @@ -1,3 +1,5 @@ DIST requests-ntlm-1.2.0.gh.tar.gz 14540 BLAKE2B 0b9dd72680c6e67dc6e4f0a3eef3b9fa0cc03c71010238a0e7ef8a48b59c57e12846040975f7eef7710113f372cd1e1628e5a9be0eca8e7a287a9cfd0765ebf0 SHA512 230eb6c8a90e8745a3c969114f81d2559aa0f411b79b54747d21c6c28572f7d61c024c47a831777c2d85fb8b09af7fee667d3a3abf318473c97e727c5f2d7943 +DIST requests-ntlm-1.3.0.gh.tar.gz 15460 BLAKE2B 6d2306cfa28e784ef5f399d9168c844fa1196d35a63bcb1508ae15b10eba0d7852679e4b66b328b567878bf0c1a1b919b35a0b8caf3b8f9c35ea7ecf2dbed8ba SHA512 2c2110a0694f43d2147144ee1e9761fdea6e60ac37f5923d608e7e2a047125f9c7dd84cb8b255033ada1c8de287eb0f7ab6751b3e8f85ed638c8fe6e4303f7f9 EBUILD requests-ntlm-1.2.0.ebuild 1018 BLAKE2B 23014d7f49aeec064983fa92f37088a62883ee1ad68f7a0455b19e9fc9690b4ee45b216b98c8d725c4f02970182db730fe40e532e6057a4598edcf492b4a322f SHA512 0fd9e4b57efe766c6f98b65cc209c1d14b136cda3b25d35b86142dd925d0d3afabefd139f35f8d251919373be1c5e66192dbe915ca9a1f527bceff2c7aa7482d +EBUILD requests-ntlm-1.3.0.ebuild 1020 BLAKE2B a6669d0017fd7c9681df59ebd3560d88a7e7fb3530f06a95233b1db75b9101570b69e660cd60733e4f491cd57068d918e7ea87b19ceff4db6524d3d7c7a73160 SHA512 a328919b05b53352805f010ed4aa9cc5b0ddebe32de7088718650ce0c3880a339fc7bfa934c91092dac069e3455e02a08eec680c73ea175372fbe246b4af1fce MISC metadata.xml 492 BLAKE2B 2c1f1f5a723771cdd2af4d7efb816d9bba18a34918851340fbec9bb0effca7dc2ed01a267b62ff2c3566dde7eaecd8068b31fe63371a1c7bcbbeba58e61fb915 SHA512 7c31efbf4c60b7d30de66965fde50e44bf9a2fb43e041fd20134036124067daa55d09d6d172633be2abc9fff16fcc1bb2eb305ffc56ffacaecea2469a7717365 diff --git a/dev-python/requests-ntlm/requests-ntlm-1.3.0.ebuild b/dev-python/requests-ntlm/requests-ntlm-1.3.0.ebuild new file mode 100644 index 000000000000..d1c412c7ee81 --- /dev/null +++ b/dev-python/requests-ntlm/requests-ntlm-1.3.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +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 +" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/cryptography-1.3[${PYTHON_USEDEP}] + >=dev-python/pyspnego-0.4.0[${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}" +} |