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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 19:22:58 UTC 2020


    Date: Monday, November 9, 2020 @ 19:22:58
  Author: foutrelis
Revision: 748034

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-datadir/repos/community-staging-any/
  python-pytest-datadir/repos/community-staging-any/PKGBUILD
    (from rev 748033, python-pytest-datadir/trunk/PKGBUILD)

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

Copied: python-pytest-datadir/repos/community-staging-any/PKGBUILD (from rev 748033, python-pytest-datadir/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 19:22:58 UTC (rev 748034)
@@ -0,0 +1,32 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pytest-datadir
+pkgname=python-$_pkgname
+pkgver=1.3.1
+pkgrel=2
+pkgdesc='pytest plugin for test data directories and files'
+arch=('any')
+url='https://github.com/gabrielcnr/pytest-datadir'
+license=('MIT')
+depends=('python-pytest')
+makedepends=('python-setuptools-scm')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('cfd5134b42ba74d6deaf0797e514969f418ee3ee01e1b559003e7f30d713fa78a79ab392f09494ba057bbd4b2caf1c2c2fafe8b9cf9eeecac3aa18c1180ab182')
+
+
+build() {
+  cd $_pkgname-$pkgver
+
+  SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python setup.py build
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  rm "$pkgdir"/usr/LICENSE
+  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