From 593bc063f85926ea82c045594c9aeaa5f79eaaa0 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/8] 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 ced616b2c39ce8a6b36e984d27010b9c293bb11b 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/8] 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 7774ac52daaf314d5933324b1a0d2e24dd2f136a 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/8] 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 beedd280b24a01e3a0581ed0ae815d546938f4e2 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/8] 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 ef603bfcb856b15388dee78737aa84912fec0be8 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/8] 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 8b9e41def513850e7211e791544d74f58c4a8880 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/8] 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 da50f8d946fc4191cb68f80fce064bada917f6dc 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/8] 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 76a032c42cc34b737977fbee89c22dcba37ce53c 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 8/8] 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