diff options
Diffstat (limited to 'dev-python/black')
| -rw-r--r-- | dev-python/black/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/black/black-25.12.0.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest index b5248c7f9225..4a89a3b86eef 100644 --- a/dev-python/black/Manifest +++ b/dev-python/black/Manifest @@ -1,3 +1,4 @@ DIST black-25.1.0.tar.gz 649449 BLAKE2B 28045d73259780c38430838ad245a3a6545f6c55890ee5105f15121659e28dc3d3b332ddd08b7f196afcabc04d3d423b0ccf61e2a467f9ac131b9d7480e86415 SHA512 57281a678d322aaf0f2b7059aa59ad65055cb6999b8fc22ead115011d1b2e607d5cc91880369ee93a438bc266d7ebd371cd046f12d41a83383577f36a6211844 DIST black-25.11.0.tar.gz 655669 BLAKE2B 226e1c2e85f903b5bf4033567d266db9aeb56c0365b8debd05e1f13ed98aca98854e4b079a8270db62ae56fab446cdd54d6f60fa572eaa0ed70e8cdcdb68f7b0 SHA512 e6b91cc3772b5a079baf99792140d8d66448b2d17aa27706af5a9c652fca04ed4815dab4fdcaf93721d0b7e85e5fec85ba3fd14f08487a82f558c140a3dfbfd6 +DIST black-25.12.0.tar.gz 659264 BLAKE2B df81aae998aa8d756c2f9d94935f0cdbaa1116fcaff0073e2f82681f852da26197e222832ce134e6c4391614791d98b828fc26c55f7a8ad94194705bc9952342 SHA512 2e67d22218eaba3e5c4f3bbcfe5ea3d305852168cfe7f75edb31ecd4db7b4a3dc349e23f8b93c0e5c5e9c4380cb3cd949733d13b9991b41496a7d17514cd2cea DIST black-25.9.0.tar.gz 648393 BLAKE2B 916d9b6859d31b41a2b064537dd180d37d33ffb41827fab43e8b65d04a17709e2ed20e9672a7bb4a79038e81886b198aed2ce99d46b3ede2bac2a801b23e9f19 SHA512 aa2a2ff1cd1169108968735e7fcd0ad0b25d721786461975d0aaea06b21accc877c96eff0876c40ebe7c31d6de8065c7db47580fe7372c8ad8c08a0c17951311 diff --git a/dev-python/black/black-25.12.0.ebuild b/dev-python/black/black-25.12.0.ebuild new file mode 100644 index 000000000000..7a3f4ad56231 --- /dev/null +++ b/dev-python/black/black-25.12.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="The uncompromising Python code formatter" +HOMEPAGE=" + https://black.readthedocs.io/en/stable/ + https://github.com/psf/black/ + https://pypi.org/project/black/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/click-8.0.0[${PYTHON_USEDEP}] + >=dev-python/mypy-extensions-0.4.3[${PYTHON_USEDEP}] + >=dev-python/packaging-22.0[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2[${PYTHON_USEDEP}] + >=dev-python/pytokens-0.3.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/aiohttp-3.10[${PYTHON_USEDEP}] + dev-python/aiohttp-cors[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + case ${EPYTHON} in + pypy3.11) + EPYTEST_DESELECT+=( + # https://github.com/psf/black/issues/4582 + 'tests/test_format.py::test_simple_format[backslash_before_indent]' + 'tests/test_format.py::test_simple_format[form_feeds]' + ) + ;; + esac + + epytest +} + +pkg_postinst() { + optfeature "blackd - HTTP API for black" \ + "dev-python/aiohttp dev-python/aiohttp-cors" +} |
