[arch-commits] Commit in python-nose/repos (testing-any testing-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Mon Jan 3 14:47:44 UTC 2022


    Date: Monday, January 3, 2022 @ 14:47:43
  Author: felixonmars
Revision: 433334

archrelease: copy trunk to testing-any

Added:
  python-nose/repos/testing-any/
  python-nose/repos/testing-any/PKGBUILD
    (from rev 433333, python-nose/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-nose/repos/testing-any/PKGBUILD (from rev 433333, python-nose/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2022-01-03 14:47:43 UTC (rev 433334)
@@ -0,0 +1,44 @@
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgname=python-nose
+pkgver=1.3.7
+pkgrel=14
+pkgdesc="A discovery-based unittest extension"
+arch=('any')
+url='https://readthedocs.org/docs/nose/'
+license=('LGPL2.1')
+depends=('python' 'python-setuptools')
+source=("https://pypi.python.org/packages/source/n/nose/nose-${pkgver}.tar.gz"{,.asc})
+sha512sums=('e65c914f621f8da06b9ab11a0ff2763d6e29b82ce2aaed56da0e3773dc899d9deb1f20015789d44c65a5dad7214520f5b659b3f8d7695fb207ad3f78e5cf1b62'
+            'SKIP')
+validpgpkeys=('58B277C0D208F7AC460C07C84548B3A8C0D70C12') # John Szakmeister <john at szakmeister.net>
+
+prepare() {
+  cd nose-$pkgver
+  sed -i -e "s:man/man1:share/man/man1:g" setup.py
+
+  # setuptools 58 removed support for 2to3
+  sed -i "s/'use_2to3': True,//" setup.py
+  sed -i 's/from setuptools.command.build_py import Mixin2to3/from distutils.util import Mixin2to3/' setup3lib.py
+  sed -i 's/except ImportError:/except IOError:/' setup.py
+}
+
+build() {
+  cd nose-$pkgver
+  2to3 -wn nose unit_tests functional_tests
+  python setup.py build build_tests
+}
+
+check() {
+  cd nose-$pkgver
+  python selftest.py || echo "Tests failed"
+}
+
+package() {
+  cd nose-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir"
+  ln -s nosetests "$pkgdir"/usr/bin/nosetests3
+}



More information about the arch-commits mailing list