[arch-commits] Commit in python-ddt/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 05:03:41 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:03:41
Author: felixonmars
Revision: 749264
archrelease: copy trunk to community-staging-any
Added:
python-ddt/repos/community-staging-any/
python-ddt/repos/community-staging-any/PKGBUILD
(from rev 749263, python-ddt/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-ddt/repos/community-staging-any/PKGBUILD (from rev 749263, python-ddt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:03:41 UTC (rev 749264)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-ddt
+pkgver=1.4.1
+pkgrel=2
+pkgdesc="Data-Driven/Decorated Tests"
+arch=('any')
+license=('MIT')
+url="https://github.com/txels/ddt"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-six' 'python-yaml')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/txels/ddt/archive/$pkgver.tar.gz")
+sha512sums=('a4d80aea3e5c9399b52899616fb9de94321e68e50a82bcb8d6dadb1406c544bd65c01321ffdcc91535291b5d3fac801b26d6eb2b2c02fd72b27cb6d795894238')
+
+build() {
+ cd ddt-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd ddt-$pkgver
+ pytest
+}
+
+package() {
+ cd ddt-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}
More information about the arch-commits
mailing list