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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:53:32 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:53:32
  Author: foutrelis
Revision: 1059478

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-datafixtures/repos/community-staging-any/PKGBUILD (from rev 1059475, python-pytest-datafixtures/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:53:32 UTC (rev 1059478)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytest-datafixtures
+pkgname=python-pytest-datafixtures
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Data fixtures for pytest made simple"
+arch=('any')
+url="https://github.com/idlesign/pytest-datafixtures"
+license=('BSD')
+depends=('python-pytest')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('7464f7df07ff5dd39ce0f4f315a601882541accdfcc84246a94140363e75ae9709daa2a4f6e493b7efe8b10be7aa438861c4c33e9ba8c128edd683c1419b7aa4')
+b2sums=('fd49ecb54cc76ebce1f5bb93aade6d980992540644166dd9c91fc186313d8222e6b168c41d8e7c7d385422a2832722258b046c171ccd907db62d31c4ba3bace7')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 {AUTHORS,CHANGELOG,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list