[arch-commits] Commit in python-spec/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:55:45 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:55:45
  Author: foutrelis
Revision: 1059546

archrelease: copy trunk to community-staging-any

Added:
  python-spec/repos/community-staging-any/
  python-spec/repos/community-staging-any/PKGBUILD
    (from rev 1059544, python-spec/trunk/PKGBUILD)

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

Copied: python-spec/repos/community-staging-any/PKGBUILD (from rev 1059544, python-spec/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:55:45 UTC (rev 1059546)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-spec
+pkgver=1.4.1
+pkgrel=2
+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.10/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