Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: giara-1.0.1
@ 2022-05-14 17:44 jcgruenhage
  0 siblings, 0 replies; only message in thread
From: jcgruenhage @ 2022-05-14 17:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]

There is a new pull request by jcgruenhage against master on the void-packages repository

https://github.com/jcgruenhage/void-packages giara-1.0.1_1
https://github.com/void-linux/void-packages/pull/37132

New package: giara-1.0.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->

Follow up to #28453, which I've discovered after I had already packaged everything and was looking into mistune acting up at runtime. I agree with the sentiment that the packaging is a fragile pita, but with nearly everything in here not having the checks disabled now, I'm a bit more confident that this is actually fine.

One thing that should probably be done here is updating mistune again, because there's a stable 2.0.2 release now, which has also been updated in https://github.com/jupyter/nbconvert/pull/1764, which probably means we can update `python3-mistune` to 2.0.2 once `python3-jupyter_nbconvert` has its next stable release. The 7.0.0-rc.1 has been released 5 days ago after the mistune update had been merged.


A patch file from https://github.com/void-linux/void-packages/pull/37132.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-giara-1.0.1_1-37132.patch --]
[-- Type: text/x-diff, Size: 14704 bytes --]

From 03fc60d18a24658e273ff9d156c1b30f2c4ed24e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
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 <jan.christian@gruenhage.xyz>"
+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 4a821b1d24c507ff28a2a23ac28fa4664d63af6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
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 <jiri.kuncar@gmail.com>
+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 <jan.christian@gruenhage.xyz>"
+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 e44b3cd49c47a7c53f1df6e1e9d53a062043a2fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
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 <jan.christian@gruenhage.xyz>"
+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 559d6ef0481e288aadb467483ee2f0d57fe5ecd0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
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 <jan.christian@gruenhage.xyz>"
+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 75fa71f4f93a7f9cd249868ef5f6cb8087f85334 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 18:39:08 +0200
Subject: [PATCH 5/9] New package: python3-testfixtures-6.18.5

---
 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..853aae289563
--- /dev/null
+++ b/srcpkgs/python3-testfixtures/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-testfixtures'
+pkgname=python3-testfixtures
+version=6.18.5
+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 <jan.christian@gruenhage.xyz>"
+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=02dae883f567f5b70fd3ad3c9eefb95912e78ac90be6c7444b5e2f46bf572c84
+# Requires django and twisted just for running tests
+make_check=no
+
+post_install() {
+	vlicense LICENSE.txt
+}

From 216624c11da05485c67a74c088762bb37be5385e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
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 <jan.christian@gruenhage.xyz>"
+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 c5e29b35c41108c183f6525f4c03ceb68ce982f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
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 <jan.christian@gruenhage.xyz>"
+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 6649d67ea0f6d28394f8929ea818ecd7d7fedbb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 14 May 2022 19:12:13 +0200
Subject: [PATCH 8/9] New package: blueprint-compiler-0.0.20220430

---
 srcpkgs/blueprint-compiler/template | 15 +++++++++++++++
 1 file changed, 15 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..d3d872173ea3
--- /dev/null
+++ b/srcpkgs/blueprint-compiler/template
@@ -0,0 +1,15 @@
+# Template file for 'blueprint-compiler'
+pkgname=blueprint-compiler
+version=0.0.20220430
+revision=1
+_commit=d09ee2a62b4f86feec1136b0393426355264f0b0
+wrksrc="${pkgname}-${_commit}"
+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 <jan.christian@gruenhage.xyz>"
+license="LGPL-3.0-or-later"
+homepage="https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/"
+distfiles="https://gitlab.gnome.org/jwestman/${pkgname}/-/archive/${_commit}/${pkgname}-${_commit}.tar.gz"
+checksum=30513e6aeadc75766820b6208e143016694bfd2a3fba16ff74be3fe665d083e0

From 3d682d226daf34180aefc9fe809dcdc65e27544b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
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 <jan.christian@gruenhage.xyz>"
+license="GPL-3.0-or-later"
+homepage="https://gitlab.gnome.org/World/giara"
+distfiles="${homepage}/-/archive/${version}/giara-${version}.tar.gz"
+checksum=fc38e2cec5315e0abaeb1053b18984e7ded5526f026b435a799d63870a1e4c36

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-14 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-14 17:44 [PR PATCH] New package: giara-1.0.1 jcgruenhage

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).