Package Details: python-pylatexenc 1.3-1

Git Clone URL: https://aur.archlinux.org/python-pylatexenc.git (read-only, click to copy)
Package Base: python-pylatexenc
Description: Python library for encoding unicode to latex and for parsing LaTeX to generate unicode text
Upstream URL: https://github.com/phfaist/pylatexenc
Licenses: MIT
Submitter: Tyilo
Maintainer: Tyilo
Last Packager: Tyilo
Votes: 1
Popularity: 0.000000
First Submitted: 2017-07-03 20:51
Last Updated: 2018-11-13 02:05

Dependencies (2)

Required by (3)

Sources (0)

Latest Comments

aplund commented on 2021-09-25 02:32

The current version is 2.10. Would you consider the following patch to update:

From b3a1154dbbf302f59f0dbe4dad098051f7b57bab Mon Sep 17 00:00:00 2001
From: Austin Lund <austin.lund@gmail.com>
Date: Sat, 25 Sep 2021 12:28:08 +1000
Subject: [PATCH] Update version to 2.10

---
 PKGBUILD | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 275d282..f6ded91 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,18 +2,29 @@
 # PKGBUILD generated by pipman
 # Python package author: Philippe Faist <philippe.faist@bluewin.ch>
 pkgname=python-pylatexenc
-pkgver=1.3
+pkgver=2.10
 pkgrel=1
 pkgdesc="Python library for encoding unicode to latex and for parsing LaTeX to generate unicode text"
 arch=(any)
 url="https://github.com/phfaist/pylatexenc"
 license=(MIT)
-makedepends=("python" "python-pip")
+depends=(python)
+makedepends=(python-setuptools)
+source=("${pkgname}-v${pkgver}.tar.gz::https://github.com/phfaist/pylatexenc/archive/refs/tags/v${pkgver}.tar.gz")
+sha256sums=(bcb859affea00b5acb25aec780620170ab9d385c8f7dc266b7237ce9f47a59fd)
+
 build() {
-  pip install --no-deps --target="pylatexenc" pylatexenc
+    cd "pylatexenc-${pkgver}"
+    python setup.py build
 }
+
 package() {
-  sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
-  mkdir -p $pkgdir/"$sitepackages"
-  cp -r $srcdir/pylatexenc/* $pkgdir/"$sitepackages"
+    cd "pylatexenc-${pkgver}"
+    python setup.py install --root="$pkgdir" --optimize=1
+    install -D -m644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.txt
+}
+
+check() {
+    cd "pylatexenc-${pkgver}"
+    python -m unittest test/test_*.py
 }
-- 
2.33.0