summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Yan2023-04-07 14:16:51 +0300
committerFelix Yan2023-04-07 14:16:51 +0300
commit1dcf6e11e39b4eb0f397648f7057830b1506502e (patch)
tree1f7fa35d64ff0f0bc2df37a3b25da85255b2e1ae
downloadaur-1dcf6e11e39b4eb0f397648f7057830b1506502e.tar.gz
import from community
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD35
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..b30f97fede41
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = python-unittest-xml-reporting
+ pkgdesc = unittest-based test runner with Ant/JUnit like XML reporting.
+ pkgver = 3.2.0
+ pkgrel = 1
+ url = https://github.com/xmlrunner/unittest-xml-reporting
+ arch = any
+ license = BSD
+ makedepends = python-setuptools
+ depends = python-lxml
+ source = https://github.com/xmlrunner/unittest-xml-reporting/archive/3.2.0/python-unittest-xml-reporting-3.2.0.tar.gz
+ sha512sums = ea8b6c7d3b7995fc1750b14ca76987ff3525993be91c86e401bcfd233d4d02d629d4fa50fc7de79cade39ed4d6c9749becee279ae68c4ed90747e3d3940ab898
+
+pkgname = python-unittest-xml-reporting
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..887461cbb345
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45@gmail.com>
+
+pkgname=python-unittest-xml-reporting
+pkgver=3.2.0
+pkgrel=1
+pkgdesc='unittest-based test runner with Ant/JUnit like XML reporting.'
+arch=('any')
+url='https://github.com/xmlrunner/unittest-xml-reporting'
+license=('BSD')
+depends=('python-lxml')
+makedepends=('python-setuptools')
+source=("https://github.com/xmlrunner/unittest-xml-reporting/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('ea8b6c7d3b7995fc1750b14ca76987ff3525993be91c86e401bcfd233d4d02d629d4fa50fc7de79cade39ed4d6c9749becee279ae68c4ed90747e3d3940ab898')
+
+build() {
+ cd unittest-xml-reporting-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd unittest-xml-reporting-$pkgver
+ python setup.py test
+}
+
+package() {
+ cd unittest-xml-reporting-$pkgver
+ python setup.py install --root="$pkgdir" -O1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+
+ # Broken data_files
+ rm "$pkgdir"/usr/LICENSE
+}