Package Details: python-pyprind 2.11.2-5

Git Clone URL: https://aur.archlinux.org/python-pyprind.git (read-only, click to copy)
Package Base: python-pyprind
Description: Python Progress Bar and Percent Indicator Utility
Upstream URL: https://pypi.python.org/pypi/PyPrind/
Licenses: BSD
Submitter: metak
Maintainer: None
Last Packager: metak
Votes: 4
Popularity: 0.000000
First Submitted: 2016-11-11 22:57 (UTC)
Last Updated: 2021-12-13 11:42 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

weiti commented on 2025-06-06 07:07 (UTC) (edited on 2025-06-06 07:09 (UTC) by weiti)

On a fresh installation this package doesn't build, i added a small patch to successfully rebuild it due to license changes:

--- src/PyPrind-2.11.2/setup.py 2016-07-29 22:57:30.000000000 +0200
+++ orig/PyPrind-2.11.2/setup.py        2025-06-06 08:50:39.907237268 +0200
@@ -31,10 +31,9 @@
                     'tests': ['tests/test_percentage_indicator.py',
                               'tests/test_progress_bar.py']},
       include_package_data=True,
-      license='BSD 3-Clause',
+      license='BSD-3-Clause',
       platforms='any',
       classifiers=[
-          'License :: OSI Approved :: BSD License',
           'Development Status :: 5 - Production/Stable',
           'Programming Language :: Python :: 2.7',
           'Programming Language :: Python :: 3',

and also need to remove the check() function as there are no test in setup.py anymore:

diff --git a/PKGBUILD b/PKGBUILD
index 983d7fd..33c7af1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,15 +14,20 @@ optdepends=('python-psutil: improved system information')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
 sha256sums=('c46cab453b805852853dfe29fd933aa88a2a516153909c695b098e9161a9e675')

+prepare() {
+    cd "$srcdir/${_name}-${pkgver}"
+    patch -Np2 -i ../../license-SPDX.patch
+}
+
 build() {
   cd "$srcdir/${_name}-${pkgver}"
   python setup.py build
 }

-check() {
-  cd "$srcdir/${_name}-${pkgver}"
-  python setup.py test
-}
+#check() {
+#  cd "$srcdir/${_name}-${pkgver}"
+#  python setup.py test
+#}

 package() {
   cd "${_name}-${pkgver}"