summaryrefslogtreecommitdiff
path: root/python-jira/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-08-27 17:17:36 +0200
committerErich Eckner <git@eckner.net>2021-08-27 17:17:36 +0200
commit23e3acd02e970e095d83abafc3616e6a133098f3 (patch)
treefc0034b4a86687a4f36f22289e9dfc84ffd5ca18 /python-jira/PKGBUILD
parent37647e99fa504d36b26e10bacc9ac2054903b017 (diff)
downloadarchlinuxewe-23e3acd02e970e095d83abafc3616e6a133098f3.tar.xz
python-jira new
Diffstat (limited to 'python-jira/PKGBUILD')
-rw-r--r--python-jira/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/python-jira/PKGBUILD b/python-jira/PKGBUILD
new file mode 100644
index 000000000..2f19706c2
--- /dev/null
+++ b/python-jira/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+pkgname=python-jira
+_pkgname="${pkgname#*-}"
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="Python library to work with Jira APIs"
+arch=(any)
+url="https://github.com/pycontribs/jira"
+license=('BSD')
+depends=(
+ 'python>=3.9'
+ 'python<3.10'
+ 'python-defusedxml'
+ 'python-keyring'
+ 'python-requests'
+ 'python-requests-oauthlib'
+ 'python-requests-toolbelt'
+)
+makedepends=(
+ 'python-setuptools'
+)
+source=("https://github.com/pycontribs/jira/archive/refs/tags/$pkgver.tar.gz")
+sha256sums=('feb5f77431728aee7c99bca65f00c9f39682720369c7f24c0cf932049a72ec5f')
+
+prepare() {
+ cd "${srcdir}/jira-${pkgver}"
+ sed -i '
+ s@\(setuptools.setup(\)use_scm_version=True)@\1version='"'${pkgver}'"')@
+ ' setup.py
+}
+
+package() {
+ cd "${srcdir}/jira-${pkgver}"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}