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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 18:55:40 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:55:40
  Author: felixonmars
Revision: 753261

archrelease: copy trunk to community-staging-any

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

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

Copied: python-nox/repos/community-staging-any/PKGBUILD (from rev 753259, python-nox/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 18:55:40 UTC (rev 753261)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=nox
+pkgname=python-$_pkgname
+pkgver=2020.8.22
+pkgrel=2
+pkgdesc='Flexible test automation for Python'
+arch=('any')
+url='https://github.com/theacodes/nox'
+license=('Apache')
+depends=('python' 'python-argcomplete' 'python-colorlog' 'python-py' 'python-virtualenv')
+optdepends=('python-jinja: tox_to_nox'
+            'python-tox: tox_to_nox')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-jinja' 'python-tox')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('8a63846398c2b335d00ceda052e0bd8448fa667b1d78bf58184d6a96b15c7ce34d6b6af0aa637088d5f219740732afffe032a09b42c5ad205890dc3fd73d03e8')
+
+prepare() {
+  # missing python-contexter
+  rm $_pkgname-$pkgver/tests/test_main.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list