[arch-commits] Commit in python-nox/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 23:31:04 UTC 2021
Date: Thursday, December 2, 2021 @ 23:31:03
Author: felixonmars
Revision: 1063087
archrelease: copy trunk to community-staging-any
Added:
python-nox/repos/community-staging-any/
python-nox/repos/community-staging-any/PKGBUILD
(from rev 1063086, python-nox/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-nox/repos/community-staging-any/PKGBUILD (from rev 1063086, python-nox/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-02 23:31:03 UTC (rev 1063087)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=nox
+pkgname=python-$_pkgname
+pkgver=2021.6.12
+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' 'python-packaging')
+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=('25344c4c6a955449b96de90b1019d0feedaeb697b9b555334c08f7fbd7148dab5c086145ff87b0aff4dd8459e1fe7face3455ee798d4989a8bf8fb4489a481e7')
+
+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