From 47dac944b71cc4ffb070ab7854697c30220941fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 12:34:02 +0200 Subject: [PATCH 1/9] New package: python3-update-checker-0.18.0 --- srcpkgs/python3-update-checker/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-update-checker/template diff --git a/srcpkgs/python3-update-checker/template b/srcpkgs/python3-update-checker/template new file mode 100644 index 000000000000..ff10aedf21f1 --- /dev/null +++ b/srcpkgs/python3-update-checker/template @@ -0,0 +1,19 @@ +# Template file for 'python3-update-checker' +pkgname=python3-update-checker +version=0.18.0 +revision=1 +wrksrc="update_checker-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-requests" +checkdepends="python3-wheel ${depends} black python3-flake8 python3-pytest" +short_desc="Python module for checking for python package updates" +maintainer="Jan Christian Grünhage " +license="BSD-2-Clause" +homepage="https://pypi.org/project/update-checker/" +distfiles="${PYPI_SITE}/u/update_checker/update_checker-${version}.tar.gz" +checksum=6a2d45bb4ac585884a6b03f9eade9161cedd9e8111545141e9aa9058932acb13 + +post_install() { + vlicense LICENSE.txt +} From e55c8d837b04be7c2c1f2dffc2733474ac295bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 13:14:28 +0200 Subject: [PATCH 2/9] New package: python3-betamax-0.8.1 --- ...-fix-direct-calls-to-PyTest-fixtures.patch | 41 +++++++++++++++++++ srcpkgs/python3-betamax/template | 18 ++++++++ 2 files changed, 59 insertions(+) create mode 100644 srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch create mode 100644 srcpkgs/python3-betamax/template diff --git a/srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch b/srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch new file mode 100644 index 000000000000..4ada4512700b --- /dev/null +++ b/srcpkgs/python3-betamax/patches/0001-tests-fix-direct-calls-to-PyTest-fixtures.patch @@ -0,0 +1,41 @@ +From 614b919be098fadf2b9ed89cf7201be41feea237 Mon Sep 17 00:00:00 2001 +From: Jiri Kuncar +Date: Mon, 9 Sep 2019 12:23:18 +0200 +Subject: [PATCH] tests: fix direct calls to PyTest fixtures + +https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly +--- + tests/unit/test_fixtures.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py +index 387d9ce..41f33eb 100644 +--- a/tests/unit/test_fixtures.py ++++ b/tests/unit/test_fixtures.py +@@ -27,9 +27,9 @@ class TestPyTestFixture(unittest.TestCase): + # Mock a pytest request object + request = mock.MagicMock() + request.cls = request.module = None +- request.function.__name__ = 'test' ++ request.node.name = request.function.__name__ = 'test' + +- pytest_fixture.betamax_recorder(request) ++ pytest_fixture._betamax_recorder(request) + assert request.addfinalizer.called is True + request.addfinalizer.assert_called_once_with(self.mocked_betamax.stop) + +@@ -37,9 +37,9 @@ class TestPyTestFixture(unittest.TestCase): + # Mock a pytest request object + request = mock.MagicMock() + request.cls = request.module = None +- request.function.__name__ = 'test' ++ request.node.name = request.function.__name__ = 'test' + +- pytest_fixture.betamax_recorder(request) ++ pytest_fixture._betamax_recorder(request) + self.mocked_betamax.start.assert_called_once_with() + + +-- +2.36.1 + diff --git a/srcpkgs/python3-betamax/template b/srcpkgs/python3-betamax/template new file mode 100644 index 000000000000..9d3ad6f62b45 --- /dev/null +++ b/srcpkgs/python3-betamax/template @@ -0,0 +1,18 @@ +# Template file for 'python3-betamax' +pkgname=python3-betamax +version=0.8.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +make_check_args="--deselect + tests/integration/test_record_modes.py::TestRecordOnce::test_replays_response_from_cassette" +hostmakedepends="python3-setuptools" +depends="python3-requests" +checkdepends="${depends} python3-pytest python3-mock" +short_desc="VCR imitation designed only for python-requests" +maintainer="Jan Christian Grünhage " +license="Apache-2.0" +homepage="https://betamax.readthedocs.io/" +changelog="https://raw.githubusercontent.com/betamaxpy/betamax/master/HISTORY.rst" +distfiles="${PYPI_SITE}/b/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=5bf004ceffccae881213fb722f34517166b84a34919b92ffc14d1dbd050b71c2 From adcf0cabe915c921bb6e7aa233b26c4c26a02416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 18:36:52 +0200 Subject: [PATCH 3/9] New package: python3-betamax-serializers-0.2.1 --- srcpkgs/python3-betamax-serializers/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-betamax-serializers/template diff --git a/srcpkgs/python3-betamax-serializers/template b/srcpkgs/python3-betamax-serializers/template new file mode 100644 index 000000000000..274b7144db86 --- /dev/null +++ b/srcpkgs/python3-betamax-serializers/template @@ -0,0 +1,17 @@ +# Template file for 'python3-betamax-serializers' +pkgname=python3-betamax-serializers +version=0.2.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-betamax" +short_desc="Serializers for betamax that may eventually be included in betamax" +maintainer="Jan Christian Grünhage " +license="Apache-2.0" +homepage="https://gitlab.com/betamax/serializers" +changelog="https://gitlab.com/betamax/serializers/-/raw/master/HISTORY.rst" +distfiles="${PYPI_SITE}/b/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=345c419b1b73171f2951c62ac3c701775ac4b76e13e86464ebf0ff2a978e4949 +# Has no tests +make_check=no From 85a25a6b50953b6d0dc470960ac06b996f959fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 18:37:34 +0200 Subject: [PATCH 4/9] New package: python3-betamax-matchers-0.4.0 --- srcpkgs/python3-betamax-matchers/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-betamax-matchers/template diff --git a/srcpkgs/python3-betamax-matchers/template b/srcpkgs/python3-betamax-matchers/template new file mode 100644 index 000000000000..4c2fb692eea9 --- /dev/null +++ b/srcpkgs/python3-betamax-matchers/template @@ -0,0 +1,17 @@ +# Template file for 'python3-betamax-matchers' +pkgname=python3-betamax-matchers +version=0.4.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-betamax python3-requests-toolbelt" +short_desc="Experimental matchers for Betamax" +maintainer="Jan Christian Grünhage " +license="Apache-2.0" +homepage="https://github.com/betamaxpy/betamax_matchers" +changelog="https://raw.githubusercontent.com/betamaxpy/betamax_matchers/master/HISTORY.rst" +distfiles="${PYPI_SITE}/b/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=83609d39ac25a7eed8ad3bec426cd15e647c89b4f0f1583ec44a4481bde4171f +# No tests included in tarball available from PYPI +make_check=no From a9589ded1d733e348ac5f289ca975cdf234151fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 18:39:08 +0200 Subject: [PATCH 5/9] New package: python3-testfixtures-7.0.0 --- srcpkgs/python3-testfixtures/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-testfixtures/template diff --git a/srcpkgs/python3-testfixtures/template b/srcpkgs/python3-testfixtures/template new file mode 100644 index 000000000000..ebfd4560dc37 --- /dev/null +++ b/srcpkgs/python3-testfixtures/template @@ -0,0 +1,20 @@ +# Template file for 'python3-testfixtures' +pkgname=python3-testfixtures +version=7.0.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Collection of helpers and mock objects for automated tests in Python" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/Simplistix/testfixtures" +changelog="https://raw.githubusercontent.com/simplistix/testfixtures/master/CHANGELOG.rst" +distfiles="${PYPI_SITE}/t/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=8ecac5a308793451640594d9ca42ce89b987711e1e4c9312855321ec21f6ccb4 +# Requires django and twisted just for running tests +make_check=no + +post_install() { + vlicense LICENSE.txt +} From 4b6b66f478ab419ff043d53e517048090b31e510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 18:44:21 +0200 Subject: [PATCH 6/9] New package: python3-prawcore-2.3.0 --- srcpkgs/python3-prawcore/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-prawcore/template diff --git a/srcpkgs/python3-prawcore/template b/srcpkgs/python3-prawcore/template new file mode 100644 index 000000000000..75e5aae7f91a --- /dev/null +++ b/srcpkgs/python3-prawcore/template @@ -0,0 +1,20 @@ +# Template file for 'python3-prawcore' +pkgname=python3-prawcore +version=2.3.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-requests" +checkdepends="${depends} python3-betamax python3-betamax-matchers python3-betamax-serializers python3-mock python3-pytest python3-testfixtures" +short_desc="Low-level communication layer for PRAW 4+" +maintainer="Jan Christian Grünhage " +license="BSD-2-Clause" +homepage="https://github.com/praw-dev/prawcore" +changelog="https://raw.githubusercontent.com/praw-dev/prawcore/main/CHANGES.rst" +distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=daf1ccd4b7a80dc4e6567d48336d782e94a9a6dad83770fc2edf76dc9a84f56d + +post_install() { + vlicense LICENSE.txt +} From b3edcd38d05c996f64b62f26bad4e0cc180b9520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 18:45:28 +0200 Subject: [PATCH 7/9] New package: python3-praw-7.6.0 --- srcpkgs/python3-praw/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-praw/template diff --git a/srcpkgs/python3-praw/template b/srcpkgs/python3-praw/template new file mode 100644 index 000000000000..04658dfa0d6e --- /dev/null +++ b/srcpkgs/python3-praw/template @@ -0,0 +1,20 @@ +# Template file for 'python3-praw' +pkgname=python3-praw +version=7.6.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-prawcore python3-update-checker python3-websocket-client" +checkdepends="${depends} python3-requests python3-betamax python3-betamax-matchers" +short_desc="Python Reddit API Wrapper" +maintainer="Jan Christian Grünhage " +license="BSD-2-Clause" +homepage="https://praw.readthedocs.io/en/stable/" +changelog="https://raw.githubusercontent.com/praw-dev/praw/master/CHANGES.rst" +distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=3eeebe093f2d905b6c99e18aa8c8f64071b2e7a05e60b618166ee53397cdae72 + +post_install() { + vlicense LICENSE.txt +} From c631d64a09074b1f2e5c2f78c30e6f890fe9b205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 19:12:13 +0200 Subject: [PATCH 8/9] New package: blueprint-compiler-0.2.0 --- srcpkgs/blueprint-compiler/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/blueprint-compiler/template diff --git a/srcpkgs/blueprint-compiler/template b/srcpkgs/blueprint-compiler/template new file mode 100644 index 000000000000..0fdc3107925a --- /dev/null +++ b/srcpkgs/blueprint-compiler/template @@ -0,0 +1,14 @@ +# Template file for 'blueprint-compiler' +pkgname=blueprint-compiler +version=0.2.0 +revision=1 +wrksrc="${pkgname}-v${version}" +build_style=meson +depends="python3-gobject gobject-introspection" +checkdepends="${depends} gtk4-devel" +short_desc="Blueprint is a markup language and compiler for GTK 4 user interfaces" +maintainer="Jan Christian Grünhage " +license="LGPL-3.0-or-later" +homepage="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/" +distfiles="https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/v${version}/blueprint-compiler-v${version}.tar.gz" +checksum=d4e5444c95e8d0060c819d0ab96f79a7ea2673296be95a2fb00359d1d54a0d83 From 9bc75e42c7a2d4043ad5a9d7f72eb1c87cc68888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 14 May 2022 19:35:14 +0200 Subject: [PATCH 9/9] New package: giara-1.0.1 --- srcpkgs/giara/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/giara/template diff --git a/srcpkgs/giara/template b/srcpkgs/giara/template new file mode 100644 index 000000000000..82366610f626 --- /dev/null +++ b/srcpkgs/giara/template @@ -0,0 +1,14 @@ +# Template file for 'giara' +pkgname=giara +version=1.0.1 +revision=1 +build_style=meson +hostmakedepends="pkg-config cmake gettext blueprint-compiler" +makedepends="gtk4-devel libadwaita-devel libgirepository-devel" +depends="python3-Pillow python3-requests python3-praw python3-mistune2 python3-BeautifulSoup4 gtksourceview5" +short_desc="Reddit app with mobile Linux in mind" +maintainer="Jan Christian Grünhage " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/World/giara" +distfiles="${homepage}/-/archive/${version}/giara-${version}.tar.gz" +checksum=fc38e2cec5315e0abaeb1053b18984e7ded5526f026b435a799d63870a1e4c36