Date: Wednesday, April 5, 2023 @ 18:41:05
  Author: felixonmars
Revision: 1437898

archrelease: copy trunk to community-staging-any

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

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

Copied: python-noseofyeti/repos/community-staging-any/PKGBUILD (from rev 
1437897, python-noseofyeti/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 18:41:05 UTC (rev 1437898)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-noseofyeti
+pkgver=2.4.0
+pkgrel=2
+pkgdesc="A custom pyton codec that provides an RSpec style dsl for python"
+url="https://github.com/delfick/nose-of-yeti";
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-asynctest' 'python-pytest' 'python-alt-pytest-asyncio'
+              'python-pytest-helpers-namespace')
+source=("https://github.com/delfick/nose-of-yeti/archive/release-$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('adca5ce14e86f8cc3d40c3a336e57131af2feb1c860e3633cb58e933a82e7ea678b30c4ad88c565b9bceb6dcd66871d3199aa7ec45610859750b46589df169d1')
+
+build() {
+  cd nose-of-yeti-release-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd nose-of-yeti-release-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python setup.py install
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd nose-of-yeti-release-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to