diff options
-rw-r--r-- | python-jira/PKGBUILD | 36 |
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 +} |