[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sun Aug 1 18:02:45 UTC 2021


    Date: Sunday, August 1, 2021 @ 18:02:45
  Author: felixonmars
Revision: 991980

addpkg: python-spec 1.4.1-1

Added:
  python-spec/
  python-spec/repos/
  python-spec/trunk/
  python-spec/trunk/PKGBUILD

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

Added: python-spec/trunk/PKGBUILD
===================================================================
--- python-spec/trunk/PKGBUILD	                        (rev 0)
+++ python-spec/trunk/PKGBUILD	2021-08-01 18:02:45 UTC (rev 991980)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-spec
+pkgver=1.4.1
+pkgrel=1
+pkgdesc="Specification-style nosetests output for Python"
+url="https://github.com/bitprophet/spec"
+license=('MIT')
+arch=('any')
+depends=('python-nose' 'python-six')
+makedepends=('python-setuptools')
+source=("https://github.com/bitprophet/spec/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('da512a30106e324a7ce5a3a6b3b587d95a7f8b2bb584b069b28e5dca3369c5f9b7527154ac354e06c17489e70faaa72aa2350e3d51101547713d1efa97221e66')
+
+build() {
+  cd spec-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd spec-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PATH="$PWD/tmp_install/usr/bin" PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" spec --help
+}
+
+package() {
+  cd spec-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list