dev-python/pypillowfight: add 0.3.1

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2024-11-28 13:13:54 +01:00
parent c57bf05eb3
commit 936f166cfd
2 changed files with 44 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST libpillowfight-0.3.1.tar.bz2 87826393 BLAKE2B 7e6b2c3b6069d0e8bf4eea964d6ce3f90759d6d36b31f73780d928180f613abbd639ec7925dafc90be34adb893dfa2764fa818b41a4da6a557d5f9af4c0fa615 SHA512 7d8893a1b5d55b9cbce877b794e23269f838c5a071a6abc3834ee8af00cd3be8a70cfc49cb06653cfda9d91a798b62970c755408c47749971eb5e085699d06b1
DIST libpillowfight-50d965879eb89fdef9be09d6e934329486ff585d.tar.bz2 87826271 BLAKE2B aa0a9c2800992b671940f0ed0c8d808c5ad870c724fbf0f4dad336d224e6d510b135052f2697a6a1d05bafb9f1969278962c625d5d0ffd997b2548e60b1dec2b SHA512 76b05d49e2ee9fc9dcc2c9342d312841c8d1520d8d2027bd12b6921f85bd92645f698a811ccf7bdeceba64f0b706d5fd2975f91c51db8ce87f1261793aee83cb

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1
MY_P=libpillowfight-${PV}
DESCRIPTION="Small library containing various image processing algorithms"
HOMEPAGE="
https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/
https://pypi.org/project/pypillowfight/
"
SRC_URI="
https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/-/archive/${PV}/${MY_P}.tar.bz2
"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/pillow[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
python_prepare_all() {
sed -e "/'nose>=1.0'/d" -i setup.py || die
cat > src/pillowfight/_version.h <<- EOF || die
#define INTERNAL_PILLOWFIGHT_VERSION "$(ver_cut 1-3)"
EOF
distutils-r1_python_prepare_all
}
python_test() {
epytest tests -o addopts=
}