summaryrefslogtreecommitdiff
path: root/pcr/python-redmine
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-02-27 11:37:42 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-02-27 11:37:42 +0100
commitb631085706f53786c28a3724a01a35a95680c219 (patch)
treeded0502501632454d02b3f0261a41b9386dee5c3 /pcr/python-redmine
parent631fef79feb0063d1e8000cc17746f1725084a91 (diff)
downloadabslibre-b631085706f53786c28a3724a01a35a95680c219.tar.gz
abslibre-b631085706f53786c28a3724a01a35a95680c219.tar.bz2
abslibre-b631085706f53786c28a3724a01a35a95680c219.zip
pcr: Add python-redmine from Aur
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/python-redmine')
-rw-r--r--pcr/python-redmine/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/python-redmine/PKGBUILD b/pcr/python-redmine/PKGBUILD
new file mode 100644
index 000000000..e0fbd9eba
--- /dev/null
+++ b/pcr/python-redmine/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer(Aur): Konstantin Shalygin <k0ste@k0ste.ru>
+# Contributor(Aur): Konstantin Shalygin <k0ste@k0ste.ru>
+# Contributor(Aur): Sebastien Leduc <sebastien@sleduc.fr>
+
+# parabola changes and rationale:
+# - Bumped version to 2.3.0
+# Patch status: sent in Aur, waiting review:
+# https://aur.archlinux.org/pkgbase/python-redmine/#news
+
+pkgbase='python-redmine'
+pkgname=('python-redmine' 'python2-redmine')
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="Python library for communicating with a Redmine project management application"
+arch=("any")
+url="https://${pkgbase}.com/"
+makedepends=('python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-requests' 'python-coverage')
+license=('Apache')
+source=("https://github.com/maxtepkeev/${pkgbase}/archive/v${pkgver}.tar.gz")
+sha256sums=('9c60667b79c1c93a1530d3b299beeb2278b34a33c03ac9bedd99e0d9fc9b0f3b')
+
+build() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ nosetests --with-coverage --cover-erase --cover-package=redminelib
+}
+
+package_python-redmine() {
+ depends=('python-requests')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ python setup.py install -O1 --root="${pkgdir}"
+}
+
+package_python2-redmine() {
+ depends=('python2-requests')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ python2 setup.py install -O1 --root="${pkgdir}"
+}