From d9d67e293e900fe9f4a4db3a74e1b72ca5bd8ff0 Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 18 Apr 2023 11:29:29 +0530 Subject: [PATCH 1/2] New package: python3-SQLAlchemy2-2.0.9 --- srcpkgs/python3-SQLAlchemy2/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/python3-SQLAlchemy2/template diff --git a/srcpkgs/python3-SQLAlchemy2/template b/srcpkgs/python3-SQLAlchemy2/template new file mode 100644 index 000000000000..d445ccb52fe2 --- /dev/null +++ b/srcpkgs/python3-SQLAlchemy2/template @@ -0,0 +1,23 @@ +# Template file for 'python3-SQLAlchemy2' +pkgname=python3-SQLAlchemy2 +version=2.0.9 +revision=1 +build_style=python3-pep517 +make_install_target="dist/SQLAlchemy-${version}-*-*-*.whl" +hostmakedepends="python3-setuptools python3-Cython python3-wheel" +makedepends="python3-devel" +depends="python3-greenlet python3-typing_extensions" +checkdepends="${depends} python3-mypy python3-pytest-xdist" +short_desc="SQL Toolkit and Object Relational Mapper for Python3 (v2)" +maintainer="icp " +license="MIT" +homepage="https://www.sqlalchemy.org" +changelog="https://docs.sqlalchemy.org/en/20/changelog/" +distfiles="${PYPI_SITE}/S/SQLAlchemy/SQLAlchemy-${version}.tar.gz" +checksum=95719215e3ec7337b9f57c3c2eda0e6a7619be194a5166c07c1e599f6afc20fa + +conflicts="python3-SQLAlchemy" + +post_install() { + vlicense LICENSE +} From edce2fb38cfa17aa2396a1031712c28dd40279de Mon Sep 17 00:00:00 2001 From: icp Date: Mon, 17 Apr 2023 21:40:55 +0530 Subject: [PATCH 2/2] pychess: update to 1.0.4. --- srcpkgs/pychess/template | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/srcpkgs/pychess/template b/srcpkgs/pychess/template index 92622121157e..7e52b7d8bf2f 100644 --- a/srcpkgs/pychess/template +++ b/srcpkgs/pychess/template @@ -1,23 +1,27 @@ # Template file for 'pychess' pkgname=pychess -version=1.0.3 -revision=2 +version=1.0.4 +revision=1 build_style=python3-module -_commondeps="python3-gobject python3-pexpect python3-SQLAlchemy - gobject-introspection gtksourceview" +_commondeps="python3-gobject python3-cairo python3-pexpect python3-SQLAlchemy2 + gst1-python3 gtksourceview" hostmakedepends="python3-setuptools gettext ${_commondeps}" -depends="stockfish gnome-icon-theme python3-websockets +depends="stockfish hicolor-icon-theme python3-websockets python3-psutil gst-plugins-base1 ${_commondeps}" checkdepends="${depends} xvfb-run" short_desc="GTK chess client written in Python" maintainer="cipr3s " license="GPL-3.0-or-later" homepage="https://pychess.github.io" -distfiles="https://github.com/pychess/${pkgname}/archive/${version}.tar.gz" -checksum=86b193dd1af1f40d37820afb33b3b3b890be2737d57df5f8e024a489840b25a4 +distfiles="https://github.com/pychess/pychess/archive/refs/tags/${version}.tar.gz" +checksum=68cd4a0197d7e325f0e46fb52b88ce8ac7425c6c9adea60c8838a57af713b0a5 + +pre_build() { + PYTHONPATH=lib python3 pgn2ecodb.py + PYTHONPATH=lib python3 create_theme_preview.py +} do_check() { cd testing/ - rm remotegame.py - PYTHONPATH=../lib PYCHESS_UNITTEST=true xvfb-run -a python3 -m unittest discover -p "*.py" + PYTHONPATH=../lib PYCHESS_UNITTEST=true xvfb-run -a python3 run_tests.py }