Package Details: python-sphinx-markdown-tables 0.0.17-5

Git Clone URL: https://aur.archlinux.org/python-sphinx-markdown-tables.git (read-only, click to copy)
Package Base: python-sphinx-markdown-tables
Description: Sphinx extension for rendering tables written in markdown
Upstream URL: https://github.com/ryanfox/sphinx-markdown-tables
Keywords: markdown python sphinx tables
Licenses: GPL-3.0-or-later
Submitter: kseistrup
Maintainer: kseistrup
Last Packager: kseistrup
Votes: 1
Popularity: 0.000000
First Submitted: 2021-10-05 08:42 (UTC)
Last Updated: 2024-03-25 10:13 (UTC)

Latest Comments

kseistrup commented on 2024-03-25 13:32 (UTC)

@vedranmiletic You're welcome.

I must admit I don't quite understand why the debugedit package should be necessary, as there is nothing in the upstream source that calls for it. But better safe than sorry, so thanks again for reporting it.

vedranmiletic commented on 2024-03-25 10:38 (UTC)

@kseistrup That was quick, thanks!

kseistrup commented on 2024-03-25 10:08 (UTC)

@vedranmiletic Thanks for letting me know.

vedranmiletic commented on 2024-03-25 09:02 (UTC)

Build-time requires debugedit package.

kseistrup commented on 2021-11-26 07:32 (UTC)

Thanks for the explanation.

lmartinez-mirror commented on 2021-11-26 07:11 (UTC)

Sure. PYTHONHASHSEED=0 ensures reproducible builds. It's not necessary for AUR packages but I understand some people may want this.

kseistrup commented on 2021-11-25 06:53 (UTC)

@lmartinez-mirror, thank you for your suggestions. I have updated the PKGBUILD.

May I ask why you feel that it is necessary to PYTHONHASHSEED=0?

lmartinez-mirror commented on 2021-11-25 03:51 (UTC) (edited on 2021-11-25 03:59 (UTC) by lmartinez-mirror)

Package is missing python-setuptools from its makedepends; please add it.

EDIT: Wrote up a patch for this package that also includes python-setuptools, among other things.

diff --git a/PKGBUILD b/PKGBUILD
index ba9e7f6..8a31133 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,48 +1,35 @@
 # Maintainer: Klaus Alexander Seistrup <klaus@seistrup.dk>
+# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
 # -*- sh -*-

-pkgname='python-sphinx-markdown-tables'
-_pkgname=${pkgname#python-}
+pkgname=python-sphinx-markdown-tables
 pkgver=0.0.15
-pkgrel=1
+pkgrel=2
+pkgdesc='Sphinx extension for rendering tables written in Markdown'
 arch=('any')
 license=('GPL3')
-pkgdesc='Sphinx extension for rendering tables written in markdown'
-url="https://github.com/ryanfox/$_pkgname"
-source=("$url/archive/refs/tags/v${pkgver}.tar.gz")
-depends=(
-  'python'
-  'python-markdown'
-)
-md5sums=(
-  'f7ef0287d5d8ff06e7f6fdd96c1ed27a'
-)
-sha1sums=(
-  'e164f793df5ecf4244e6018d36d0994d6a2ab863'
-)
-sha256sums=(
-  'a8e846eed203f5bbe9de3296ecd8cc0b37be2b65cb171c1198c55d67f007b0a1'
-)
-sha512sums=(
-  'e47eda8be9cd82d55def2bc11da2193830e745a27443ebf52a7fcb6457ab071ea1216106676388d3f66a129638e195c9e479bef41205e37c0dd490a184f0db6c'
-)
-b2sums=(
-  '4ad974678fe2f99f7c69b63e2e98bc11dfcea088b08d39600be708449c3e6da29e12ff6d10cba7f0f33fc3db1a550504b21ed2b16047cdfd3d804afca0b73df6'
-)
+url='https://github.com/ryanfox/sphinx-markdown-tables'
+depends=('python-sphinx' 'python-markdown')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz")
+sha256sums=('a8e846eed203f5bbe9de3296ecd8cc0b37be2b65cb171c1198c55d67f007b0a1')
+sha512sums=('e47eda8be9cd82d55def2bc11da2193830e745a27443ebf52a7fcb6457ab071ea1216106676388d3f66a129638e195c9e479bef41205e37c0dd490a184f0db6c')
+b2sums=('4ad974678fe2f99f7c69b63e2e98bc11dfcea088b08d39600be708449c3e6da29e12ff6d10cba7f0f33fc3db1a550504b21ed2b16047cdfd3d804afca0b73df6')

-build() {
-  cd "$srcdir/$_pkgname-$pkgver" || exit 1
+prepare() {
+   cd "sphinx-markdown-tables-$pkgver"
+   sed -i '/data_files/d' setup.py
+}

-  python setup.py build
+build() {
+   cd "sphinx-markdown-tables-$pkgver"
+   python setup.py build
 }

 package() {
-  cd "$srcdir/$_pkgname-$pkgver" || exit 1
-
-  python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
-  rm -vf "$pkgdir/usr/LICENSE"
-
-  install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+   cd "sphinx-markdown-tables-$pkgver"
+   PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+   install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
 }

 # eof