commit:     a6c172605c803abb2d707a8135f3500fcaf78c97
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 29 08:56:04 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 29 08:56:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6c17260

dev-python/pypng: Switch to PEP 517 build

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pypng/pypng-0.0.21-r1.ebuild | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/dev-python/pypng/pypng-0.0.21-r1.ebuild 
b/dev-python/pypng/pypng-0.0.21-r1.ebuild
new file mode 100644
index 000000000000..39d92271eef7
--- /dev/null
+++ b/dev-python/pypng/pypng-0.0.21-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Pure Python PNG image encoder/decoder"
+HOMEPAGE="
+       https://github.com/drj11/pypng/
+       https://pypi.org/project/pypng/";
+SRC_URI="https://github.com/drj11/pypng/archive/${P}.tar.gz";
+S=${WORKDIR}/pypng-${P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+python_test() {
+       "${EPYTHON}" code/test_png.py -v || die "Tests fail with ${EPYTHON}"
+}

Reply via email to