summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-15 07:37:17 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-15 07:52:51 +0100
commit20669b918b65ee60b0aeec246d7eef335bb70957 (patch)
tree2e568ec51e526448a8bd054a4ce20e045decd621 /dev-python
parent6f0f53fbdaabaebc71d81d0d3b4ed0fa21e6ed2d (diff)
downloadgentoo-20669b918b65ee60b0aeec246d7eef335bb70957.tar.gz
gentoo-20669b918b65ee60b0aeec246d7eef335bb70957.tar.bz2
gentoo-20669b918b65ee60b0aeec246d7eef335bb70957.zip
dev-python/mkdocs-minify-plugin: Bump to 0.6.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/mkdocs-minify-plugin/Manifest2
-rw-r--r--dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.3.ebuild42
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/mkdocs-minify-plugin/Manifest b/dev-python/mkdocs-minify-plugin/Manifest
index 974c5f805c2e..8f08f6a9abc3 100644
--- a/dev-python/mkdocs-minify-plugin/Manifest
+++ b/dev-python/mkdocs-minify-plugin/Manifest
@@ -1 +1,3 @@
DIST mkdocs-minify-plugin-0.6.2.gh.tar.gz 8480 BLAKE2B 91091702c0f5953b8cef4e081004cf44abbc2a7b21a0ea1996a337c96764a636fa79054c5d05ffc2814acb4b7fda0e833e61b02c6b97466586875e9da21c937b SHA512 563e150eb380aab105b18492eb0f725ec96fe12768c666b093e40d375e66cccf42f859aeb4d2788ae8c7a5b01e6e103c9f9aa1153802ad104955a98d90036144
+DIST mkdocs-minify-plugin-0.6.3.gh.tar.gz 8803 BLAKE2B 4888c646272613abab7310935b2179b2e8ddea13dc79ad6e2bcc88936202791b8b3ea1edea661a6988572e296174a889c8d5e774a77fca0b2b5e51ec6a24593d SHA512 4f20e7de415aa207af77a91ff40f37a7d9da641f30d538f04eca4592a92e68567e75b406947b00318207a8b4fd92d7c701cbb36cbc099899ae592c7b5b9cd5eb
+DIST mkdocs-minify-plugin-0.6.3.tar.gz 5561 BLAKE2B cccf9e7d16c3199f7a966758ba75f2f5d0aade3144e6dedd9736685fb3c75552f5fa4f386a3885a72b56dcda4443c494be6ac2ad5cf75fc18293af5dfbd3011f SHA512 f68256a107acf41778466f39026ea26eb702e8adabe987801c9918c1e2de27cb268e5a9bc87e5b4616e9c5194be04c534de9944b726603a6166e5257cc8476b3
diff --git a/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.3.ebuild b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.3.ebuild
new file mode 100644
index 000000000000..b290a000fe77
--- /dev/null
+++ b/dev-python/mkdocs-minify-plugin/mkdocs-minify-plugin-0.6.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="An MkDocs plugin to minify HTML and/or JS files prior to being written to disk"
+HOMEPAGE="
+ https://github.com/byrnereese/mkdocs-minify-plugin
+ https://pypi.org/project/mkdocs-minify-plugin/
+"
+# pypi sdist lacks tests, as of 0.6.3
+SRC_URI="
+ https://github.com/byrnereese/mkdocs-minify-plugin/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86"
+
+RDEPEND="
+ >=dev-python/csscompressor-0.9.5[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-1.4.1[${PYTHON_USEDEP}]
+ >=app-text/htmlmin-0.1.12[${PYTHON_USEDEP}]
+ >=dev-python/jsmin-3.0.1[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local -x PATH=${T}:${PATH}
+ cat > "${T}"/mkdocs <<-EOF || die
+ #!/bin/sh
+ exec "${EPYTHON}" -m mkdocs "\${@}"
+ EOF
+ chmod +x "${T}"/mkdocs || die
+ epytest
+}