diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-01-04 12:38:08 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-01-04 12:38:08 +0000 |
| commit | 1bf754efa5bbd5d8e8c873770e0aa95faab5e332 (patch) | |
| tree | d1c5f3040343d442d67543f37ab7a94988e8f3f9 /dev-python | |
| parent | a338dc57b8e9df503ab91b9c28412da15af5b16e (diff) | |
| download | baldeagleos-repo-1bf754efa5bbd5d8e8c873770e0aa95faab5e332.tar.gz baldeagleos-repo-1bf754efa5bbd5d8e8c873770e0aa95faab5e332.tar.xz baldeagleos-repo-1bf754efa5bbd5d8e8c873770e0aa95faab5e332.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python')
20 files changed, 384 insertions, 48 deletions
diff --git a/dev-python/denonavr/Manifest b/dev-python/denonavr/Manifest index 8b1149234ed3..f08e4cca8e5b 100644 --- a/dev-python/denonavr/Manifest +++ b/dev-python/denonavr/Manifest @@ -1,3 +1,4 @@ +DIST denonavr-0.9.10.tar.gz 102045 BLAKE2B 2b0cde47d5ea50b218b04b696756d003494ff92f99ba88509312e1a2a8ce19f0bdc0c51671a7097fa1e7d7f63194d6435ddcfb31d902bf855368d69643c4c64a SHA512 8e0bb6a25eb38e798759dbee301371691c1b34e934054897d65d8829b7f7593044522fe4667c005abcf428ed1234016fb8bbf083e05c51502f722e4d8df3b155 DIST denonavr-0.9.7.tar.gz 101839 BLAKE2B d44600e6963c2e17ffc12f203926b522d2bf2d9a853e4f061583158fb087b8fb5dbc43be835aa639ffe11391aa494a8b061b2c177bccfc2568781b304547e311 SHA512 2b8a8224ec46b90d2256d7d516801c6ae18b4434a0ee901b0a9aa80cc0481216fa33566bf33d41928f0112361b165bbe40e5f44b65cd17f09beb7cb3f4d9d803 DIST denonavr-0.9.8.tar.gz 101850 BLAKE2B b02a18d1f61547e7e63fbd51a72de57803ec6e78232be0027fb6b77176fa872227afcb5a414b0cb92ca4373116a5c6ec4975fea73ae272742ec399e4c0e3ad81 SHA512 30ca12ffffcf66b45c17434c96e496fe61af5cd42aa85dcb25502f6a21593ec4d884937d52726a430b405d9807ad024456e48e144a759ea1351fccc906a95af3 DIST denonavr-0.9.9.tar.gz 101902 BLAKE2B de30ad9520781eaa66a651f8a77ed88c76daa191f0de716f2cc00e21a8c8ae8883c5aa0c32167754062517763f903949626e04342a2342894a632cb9b94d2e20 SHA512 45d3b4fc6f8487caed0911ff7dd90dd28482de688429b8d0fae68db9a5d78959005ab2aab1b34eab34e964f4e82bccb6d57aadea367f81fc4a7927e54d771728 diff --git a/dev-python/denonavr/denonavr-0.9.10.ebuild b/dev-python/denonavr/denonavr-0.9.10.ebuild new file mode 100644 index 000000000000..ad8d3b90498f --- /dev/null +++ b/dev-python/denonavr/denonavr-0.9.10.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Automation Library for Denon AVR receivers" +HOMEPAGE="https://github.com/scarface-4711/denonavr" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/netifaces[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/requests-mock[${PYTHON_USEDEP}] + dev-python/testtools[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest diff --git a/dev-python/django/Manifest b/dev-python/django/Manifest index 444e00098474..30c0fd19297b 100644 --- a/dev-python/django/Manifest +++ b/dev-python/django/Manifest @@ -8,3 +8,5 @@ DIST Django-3.1.3.checksum.txt 2429 BLAKE2B 7184da75a1da2c615c78a892c8331ff4abfe DIST Django-3.1.3.tar.gz 9253273 BLAKE2B 9284b637ea39e028ebabe44de50dacfe6a89621fcc5eea73b7f470fc998faeb361da428be8f3f3e349f25b8629b5a350f3a5b7c35ea50183b285daf63d8944a7 SHA512 0f49316dc61a299a257313c27051852e948337491047bacb2221c9c753a5cf4bafb2ed686311ad5345dd3045260331afccb013c21503891538340225a469d1ad DIST Django-3.1.4.checksum.txt 2466 BLAKE2B 635ddd40b542890aef29f53df0fad172e48450081f57c72042a71bb5de654b1d1f5f7ce0c588b1070a203e1d4afe3a1ed19431dd23a2a67cd510d4072c79a00f SHA512 729b771008489bbf0563002e438ef88abb2a14b2c29f307cb2db9c75450f30ac8bd4920bf0493dbec06b3640fc0d4b6817e8a054af1028ad065bd321c761a6c3 DIST Django-3.1.4.tar.gz 9392125 BLAKE2B b583442de50c358e70a49b9ef557d43211e6faee17933a44012dbb9f0dac3ccbf0a91e01a2b8b798fff7ae05100199e9e9c94a81748b41ea13e49d12bb510617 SHA512 02cfaabb25e5f932dcbf659faba2f0afe298e4bee4f510f7adebfff181bdd13c3a0b08e8ce379bcc59326d904be8699db4ce31065d93566b93cad758365207f5 +DIST Django-3.1.5.checksum.txt 2428 BLAKE2B 69347177b3c8c592a0b9df832c8f0abebdd4f1ff420f95f63310eb41d3614b241dc8f01b71abfec12faa006a8e69310d31cd68425f57ecf7a02948e83c65e0b3 SHA512 93d3e0de057518b60d9da2c1193ec59a8601f53b5d81a09fa4f6866336fbff85b81c01711eb07544fce30fe17e6dec89e5a5d6a66a929d451bca77cfe172bf19 +DIST Django-3.1.5.tar.gz 9257571 BLAKE2B 0ec618753d922e64b2f0e75506843383568c0013a8f7528cf10e9ee49ffc7be8a3effda39c27497510728a16d276db5c620bab22b5a001a86cafdb4d4e2560ea SHA512 b8f0e034fcd282d6e4a9e42565da5d5f4750c900264bed10e72b8c1866370f75fd1bc856d22950e1d3ad03229c38559989a26ccc9f1252ea31d407410134a548 diff --git a/dev-python/django/django-3.1.5.ebuild b/dev-python/django/django-3.1.5.ebuild new file mode 100644 index 000000000000..c8dadeed9936 --- /dev/null +++ b/dev-python/django/django-3.1.5.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +PYTHON_REQ_USE='sqlite?,threads(+)' + +inherit bash-completion-r1 distutils-r1 optfeature verify-sig + +MY_P=${P^} +DESCRIPTION="High-level Python web framework" +HOMEPAGE="https://www.djangoproject.com/ https://pypi.org/project/Django/" +SRC_URI=" + https://media.djangoproject.com/releases/$(ver_cut 1-2)/${MY_P}.tar.gz + verify-sig? ( https://media.djangoproject.com/pgp/${MY_P}.checksum.txt )" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +# admin fonts: Roboto (media-fonts/roboto) +LICENSE+=" Apache-2.0" +# admin icons, jquery, xregexp.js +LICENSE+=" MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x64-macos" +IUSE="doc sqlite test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/asgiref[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]" +BDEPEND=" + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + $(python_gen_impl_dep sqlite) + ${RDEPEND} + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[webp,${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/selenium[${PYTHON_USEDEP}] + dev-python/tblib[${PYTHON_USEDEP}] + sys-devel/gettext + ) + verify-sig? ( >=app-crypt/openpgp-keys-django-20201201 ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1-bashcomp.patch +) + +distutils_enable_sphinx docs --no-autodoc + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/django.asc + +src_unpack() { + if use verify-sig; then + cd "${DISTDIR}" || die + verify-sig_verify_signed_checksums \ + "${MY_P}.checksum.txt" sha256 "${MY_P}.tar.gz" + cd "${WORKDIR}" || die + fi + + default +} + +python_test() { + # Tests have non-standard assumptions about PYTHONPATH, + # and don't work with ${BUILD_DIR}/lib. + PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 || + die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + newbashcomp extras/django_bash_completion ${PN}-admin + bashcomp_alias ${PN}-admin django-admin.py + + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "Additional Backend support can be enabled via" + optfeature "MySQL backend support" dev-python/mysqlclient + optfeature "PostgreSQL backend support" dev-python/psycopg:2 + elog + elog "Other features can be enhanced by" + optfeature "GEO Django" "sci-libs/gdal[geos]" + optfeature "Memcached support" dev-python/pylibmc dev-python/python-memcached + optfeature "ImageField Support" dev-python/pillow + optfeature "Password encryption" dev-python/bcrypt + optfeature "High-level abstractions for Django forms" dev-python/django-formtools +} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index 3536d13a1b89..5f896b9428ed 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -5,3 +5,4 @@ DIST hypothesis-python-5.43.3.tar.gz 9103991 BLAKE2B e374edf17571c33e48dc8d259db DIST hypothesis-python-5.43.4.tar.gz 9104105 BLAKE2B 08b8c9ac7ac72afcc4556ae2167af7b4ab79d505da8c9f6a11c91d211f26ccf320c8f5ed41458f5e34f75614ad4aecdbf6df62275868dc079c037390dcbc9e08 SHA512 065e1bdd878eab35f38105e8da3f5cf108670a51fd48ea1996bebedf8c8a152386d0eb5284ed43d4e588695a408b3a455a2e4757430e31bb5dbf0ece1f64d294 DIST hypothesis-python-5.43.8.tar.gz 9106677 BLAKE2B dd4334eb96e25cb31a16f06d1f7714bbf3631a7f09ed1bc46b9ce0d951b0718ac3ba0353ea4f71c221273f9c204380ab052e1bf4e3726e438a46585f6057b0db SHA512 475e6a60dd1132bcf1f4aed5e4cf6d478529e158583d4e81a1a74891037ff3fd80547a7adf5ee7263654984738fd983ef19fe8a6fb44cbd38160371ec30a6842 DIST hypothesis-python-5.43.9.tar.gz 9094672 BLAKE2B d7e6ca30556635d358b44e4bfaeb653d1960321d7c520907d6f3872e09eab0bb1a79dc70d0583e4642c16805150badb47f18ecdcff6c9991fb2a02a87453bc87 SHA512 1040dd8065604c175c5c138846c050ea1c28c5823e9ba17ffee67edfbae9a3ea071d9db40c844735513d2c7f1168aa6fef8d3fc3a3774cc49b6889b77816008b +DIST hypothesis-python-5.46.0.tar.gz 9099456 BLAKE2B dd90cff66fd487427e1741eb7e31d7d04ed6e1070a3963dc55e607af0627f54d73b632a59620920565d1d1e900f97e44b6bc5d6cd0861d56a19a178f1b063878 SHA512 976575c27642f80fe903345d1b58eba5c984b78505da5c8ae4574b40795adc39e8fd8619b8fa887c796f62b772d958d1544efc883407c8500f882b9c6e9adf01 diff --git a/dev-python/hypothesis/hypothesis-5.46.0.ebuild b/dev-python/hypothesis/hypothesis-5.46.0.ebuild new file mode 100644 index 000000000000..9c1c85cb43dc --- /dev/null +++ b/dev-python/hypothesis/hypothesis-5.46.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 eutils multiprocessing optfeature + +DESCRIPTION="A library for property based testing" +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="cli test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' python3_{6..9}) + ) +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + <dev-python/pytest-6.2[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + !!<dev-python/typing-3.7.4.1 + ) +" + +python_prepare() { + if ! use cli || [[ ${EPYTHON} != python* ]]; then + sed -i -e '/console_scripts/d' setup.py || die + fi +} + +python_test() { + distutils_install_for_testing --via-root + pytest -vv tests/cover tests/pytest tests/quality \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || + die "Tests fail with ${EPYTHON}" +} + +pkg_postinst() { + optfeature "datetime support" dev-python/pytz + optfeature "dateutil support" dev-python/python-dateutil + optfeature "numpy support" dev-python/numpy + optfeature "django support" dev-python/django dev-python/pytz + optfeature "pandas support" dev-python/pandas + optfeature "pytest support" dev-python/pytest +} diff --git a/dev-python/matplotlib/files/matplotlib-3.3.3-disable-lto.patch b/dev-python/matplotlib/files/matplotlib-3.3.3-disable-lto.patch new file mode 100644 index 000000000000..ab377e7f19b2 --- /dev/null +++ b/dev-python/matplotlib/files/matplotlib-3.3.3-disable-lto.patch @@ -0,0 +1,25 @@ +From 7382d6205bfdc647a8e47c8e417c991d3822eace Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 4 Jan 2021 10:03:32 +0100 +Subject: [PATCH] Disable -flto + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 6e1d19d..ed85d14 100644 +--- a/setup.py ++++ b/setup.py +@@ -147,7 +147,7 @@ class BuildExtraLibraries(BuildExtCommand): + ranlib = True + else: + ranlib = shutil.which('llvm-ranlib') +- if ranlib and has_flag(self.compiler, '-flto'): ++ if False and ranlib and has_flag(self.compiler, '-flto'): + for ext in self.extensions: + ext.extra_compile_args.append('-flto') + cppflags.append('-flto') +-- +2.30.0 + diff --git a/dev-python/matplotlib/matplotlib-3.3.3.ebuild b/dev-python/matplotlib/matplotlib-3.3.3-r1.ebuild index 319ea4d0e88e..e6e8c4ace6a1 100644 --- a/dev-python/matplotlib/matplotlib-3.3.3.ebuild +++ b/dev-python/matplotlib/matplotlib-3.3.3-r1.ebuild @@ -150,6 +150,7 @@ python_prepare_all() { local PATCHES=( "${FILESDIR}"/matplotlib-3.3.0-test.patch "${FILESDIR}"/matplotlib-3.3.2-test-extra.patch + "${FILESDIR}"/matplotlib-3.3.3-disable-lto.patch ) # requires jupyter-nbconvert diff --git a/dev-python/nose2/Manifest b/dev-python/nose2/Manifest index cb1a18eb7795..118816b8fdd7 100644 --- a/dev-python/nose2/Manifest +++ b/dev-python/nose2/Manifest @@ -1,2 +1 @@ -DIST nose2-0.9.1.tar.gz 152411 BLAKE2B 39f2d992e5cab4b9e5cd4401ea9285884eeeac7d2e126b5aad5582186efa0f325139480a446950019e91a376b5992fea106064e5170c9ea7961f128b895a335c SHA512 48cfe3956a3cb696e344ea03e5e0ac8d52831b8272b7cad2bdee34681d1e4e7968fe9da9b71cc9db40b6edf289509c2af766e73611f3a6f23ebd5062f4d52c9e DIST nose2-0.9.2.tar.gz 153381 BLAKE2B 9339a31b664561bd86817a969a64a3d80dacdda3ed25bc0a0b6531812e56c7e2bfaadcad3712d8af1a7ce585e27ff6de54428667e44e7c6b0003db5d52703971 SHA512 9af69f0cc9db2e8ef37d2c4ea4fd2d661a38df73fc984d261a1c7c39fba07e44afdf494f0939362b84a03e80c3d93ee75c9352ef333616bf8ce6e6f019b811fe diff --git a/dev-python/nose2/metadata.xml b/dev-python/nose2/metadata.xml index e7d712fc948b..80359ac785c8 100644 --- a/dev-python/nose2/metadata.xml +++ b/dev-python/nose2/metadata.xml @@ -2,6 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <!--maintainer-needed--> + <stabilize-allarches/> <upstream> <remote-id type="github">nose-devs/nose2</remote-id> <remote-id type="pypi">nose2</remote-id> diff --git a/dev-python/nose2/nose2-0.9.1-r1.ebuild b/dev-python/nose2/nose2-0.9.1-r1.ebuild deleted file mode 100644 index 40af547ebf6e..000000000000 --- a/dev-python/nose2/nose2-0.9.1-r1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit distutils-r1 - -DESCRIPTION="Next generation unittest with plugins" -HOMEPAGE="https://github.com/nose-devs/nose2" -SRC_URI="https://github.com/nose-devs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="doc" - -BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( >=dev-python/sphinx-1.0.5 ) -" -DEPEND=" - >=dev-python/coverage-4.4.1[${PYTHON_USEDEP}] - >=dev-python/six-1.1[${PYTHON_USEDEP}] -" -RDEPEND="${DEPEND}" - -python_compile_all() { - use doc && emake -C docs html -} - -python_test() { - "${PYTHON}" -m nose2.__main__ || die "tests failed under ${EPYTHON}" -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/. ) - - distutils-r1_python_install_all -} diff --git a/dev-python/nose2/nose2-0.9.2.ebuild b/dev-python/nose2/nose2-0.9.2.ebuild index 0f343dbfbca5..f89ffc6e5bf9 100644 --- a/dev-python/nose2/nose2-0.9.2.ebuild +++ b/dev-python/nose2/nose2-0.9.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -12,7 +12,7 @@ SRC_URI="https://github.com/nose-devs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 x86" IUSE="doc" # Failures need investigating RESTRICT="test" diff --git a/dev-python/paho-mqtt/Manifest b/dev-python/paho-mqtt/Manifest index ddc65cbc5a03..add027ba5d6b 100644 --- a/dev-python/paho-mqtt/Manifest +++ b/dev-python/paho-mqtt/Manifest @@ -1 +1,2 @@ DIST paho-mqtt-1.5.0.tar.gz 126869 BLAKE2B 2dce27c1fcfe7ae422dc6da76fb58e7901de00c0c349b9715c56a3603da26e1f46af9bb8c0bd982043ba54a2070655b483d251a0a847e1c3afb36bcd4cfcdba8 SHA512 7e52180bf1783ee1f39aa5248730e82fae47fe3db7c4579b0b7207a29f5337c7c0af58d58aac1c265b1ed91fa9c240187d5e3005f55c6e28623e6cbc36750294 +DIST paho-mqtt-1.5.1.tar.gz 144740 BLAKE2B 1c218f1109476fe9b28c26e1113717448377c53a2b9e01437f93d4a29f77e3b61f59492c263f160825ddcce25f907dbf72d3078954cc378d4846afb435d79bba SHA512 7e686bcc702f70c45ab061aa9833d42c4356d5002d27a035a685ca384a5b7d5e9dfd88ac95183816e08dd131463582707acd1d2e0f6de0f7dbbb6a6d0a615c97 diff --git a/dev-python/paho-mqtt/paho-mqtt-1.5.1.ebuild b/dev-python/paho-mqtt/paho-mqtt-1.5.1.ebuild new file mode 100644 index 000000000000..3b9f3f223344 --- /dev/null +++ b/dev-python/paho-mqtt/paho-mqtt-1.5.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="A client class with support for MQTT v5.0, v3.1.1, and v3.1" +HOMEPAGE="https://www.eclipse.org/paho/index.php?page=clients/python https://github.com/eclipse/paho.mqtt.python" +SRC_URI="https://github.com/eclipse/paho.mqtt.python/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/paho.mqtt.python-${PV}" + +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND="" +DEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + ) " + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/${PN}-1.5.0-strip-test-dependency.patch" +) diff --git a/dev-python/python-libevdev/python-libevdev-0.9.ebuild b/dev-python/python-libevdev/python-libevdev-0.9.ebuild index 271719d8f61b..03cafabf9f90 100644 --- a/dev-python/python-libevdev/python-libevdev-0.9.ebuild +++ b/dev-python/python-libevdev/python-libevdev-0.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -19,6 +19,7 @@ RESTRICT="!test? ( test )" DEPEND=" test? ( dev-libs/libevdev ) " +PDEPEND="dev-libs/libevdev" python_test() { esetup.py test diff --git a/dev-python/sudsds/metadata.xml b/dev-python/sudsds/metadata.xml index a56745df0223..c4e7a7e3d49d 100644 --- a/dev-python/sudsds/metadata.xml +++ b/dev-python/sudsds/metadata.xml @@ -8,5 +8,5 @@ <longdescription lang="en"> A lightweight SOAP python client for consuming Web Services. Czech NIC labs fork. </longdescription> - <origin>kit-fixups</origin> + <origin>calculatelinux-overlay</origin> </pkgmetadata> diff --git a/dev-python/sudsds/sudsds-1.0.1-r1.ebuild b/dev-python/sudsds/sudsds-1.0.1-r1.ebuild index 054a9f5306c4..ac0d6b9c7860 100644 --- a/dev-python/sudsds/sudsds-1.0.1-r1.ebuild +++ b/dev-python/sudsds/sudsds-1.0.1-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2020 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8,9,10} ) @@ -17,4 +17,4 @@ KEYWORDS="amd64 x86" IUSE="doc" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" -RDEPEND="" +RDEPEND="${DEPEND}" diff --git a/dev-python/translate-toolkit/Manifest b/dev-python/translate-toolkit/Manifest index f14204949a4c..cc98eccc667f 100644 --- a/dev-python/translate-toolkit/Manifest +++ b/dev-python/translate-toolkit/Manifest @@ -1 +1,2 @@ DIST translate-toolkit-3.2.0.tar.gz 6029254 BLAKE2B fe4c30e09fcba6755a928775f931f1027bb5678606e74aa435fd5803642ab39b8b55d763bb96dba6b1a957d6656cfca4ec6400b735afd8df7f2c1273ac173c89 SHA512 1045762a5c63cc2bc8459b61a85ef56e4f1d1f705d74646b8235169f22d8d5aa4ab5e3599af52a860d9e434df0fad3e98836b0c021bb0a9697b36a59edbfb6ec +DIST translate-toolkit-3.3.0.tar.gz 6122607 BLAKE2B 77e4d4e37fa5fdd0a735b04ccef40769863134411476abe2852855970594f7a11cf06114831c196a744a5e76d50b1707b630a738213d0ded5f588ad98dcfd613 SHA512 3529e5301e8e1f0d89bbadff92cebd5d55ada29fe5eb8d611f604139239645dd6d110bf93180b18faf2ececafb675f2fc6dfbe30d7631ba606a7dfcd5d8f27ca diff --git a/dev-python/translate-toolkit/files/translate-toolkit-3.3.0-no-install-docs.patch b/dev-python/translate-toolkit/files/translate-toolkit-3.3.0-no-install-docs.patch new file mode 100644 index 000000000000..9d812c4f98f7 --- /dev/null +++ b/dev-python/translate-toolkit/files/translate-toolkit-3.3.0-no-install-docs.patch @@ -0,0 +1,25 @@ +From 6271bfede35f22e8099261863d990eba3d26f989 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 4 Jan 2021 10:33:29 +0100 +Subject: [PATCH] Do not install docs tree into site-packages + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 5fc3abf..80ce25d 100755 +--- a/setup.py ++++ b/setup.py +@@ -513,7 +513,7 @@ def getdatafiles(): + ) + + docfiles = [] +- for subdir in ["docs", "share"]: ++ for subdir in ["share"]: + docwalk = os.walk(subdir) + for docs in docwalk: + files = listfiles(docs[0]) +-- +2.30.0 + diff --git a/dev-python/translate-toolkit/translate-toolkit-3.3.0.ebuild b/dev-python/translate-toolkit/translate-toolkit-3.3.0.ebuild new file mode 100644 index 000000000000..22e1f4c97219 --- /dev/null +++ b/dev-python/translate-toolkit/translate-toolkit-3.3.0.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="Toolkit to convert between many translation formats" +HOMEPAGE="https://github.com/translate/translate" +SRC_URI="https://github.com/translate/translate/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+html +ical +ini +subtitles +yaml" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=">=dev-python/six-1.11.0[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + !dev-python/pydiff + app-text/iso-codes + >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}] + dev-python/cheroot[${PYTHON_USEDEP}] + >=dev-python/lxml-4.3.1[${PYTHON_USEDEP}] + >=dev-python/pycountry-19.8.18[${PYTHON_USEDEP}] + >=dev-python/python-levenshtein-0.12.0[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + sys-devel/gettext + html? ( dev-python/utidylib[${PYTHON_USEDEP}] ) + ical? ( dev-python/vobject[${PYTHON_USEDEP}] ) + ini? ( >=dev-python/iniparse-0.5[${PYTHON_USEDEP}] ) + subtitles? ( media-video/gaupol[${PYTHON_USEDEP}] ) + yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] ) +" + +distutils_enable_sphinx docs \ + dev-python/sphinx-bootstrap-theme +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/translate-toolkit-3.3.0-no-install-docs.patch +) + +python_test() { + local deselect=( + # Not packaging optional phply for now. + # Seems inactive upstream. + --ignore translate/convert/test_php2po.py + --ignore translate/convert/test_po2php.py + --ignore translate/storage/test_php.py + --deselect 'translate/storage/test_cpo.py::TestCPOUnit::test_buildfromunit' + --deselect 'translate/storage/test_po.py::TestPOUnit::test_buildfromunit' + --deselect 'translate/storage/test_pypo.py::TestPYPOUnit::test_buildfromunit' + + # Fails with network-sandbox (and even with it off but w/ softer fail) + --deselect 'tests/xliff_conformance/test_xliff_conformance.py::test_open_office_to_xliff' + --deselect 'tests/xliff_conformance/test_xliff_conformance.py::test_po_to_xliff' + ) + + if ! use ini; then + deselect+=( + --ignore translate/convert/test_ini2po.py + --ignore translate/convert/test_po2ini.py + ) + fi + + if ! use subtitles; then + deselect+=( + --ignore translate/storage/test_subtitles.py + ) + fi + + # translate/storage/test_mo.py needs 'pocompile' + distutils_install_for_testing --via-root + + pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + if ! use html; then + rm "${ED}"/usr/bin/{html2po,po2html} || die + fi + if ! use ical; then + rm "${ED}"/usr/bin/{ical2po,po2ical} || die + fi + if ! use ini; then + rm "${ED}"/usr/bin/{ini2po,po2ini} || die + fi + if ! use subtitles; then + rm "${ED}"/usr/bin/{sub2po,po2sub} || die + fi + + python_optimize +} |
