summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 926bbff370e521b8594625a5b8360fe5867c437d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=python-django-q
pkgver=1.3.9
pkgrel=10
pkgdesc='A multiprocessing distributed task queue for Django'
arch=(any)
url=https://github.com/Koed00/django-q
license=(MIT)
depends=(
  python-arrow
  python-asgiref
  python-blessed
  python-dateutil
  python-django
  python-django-picklefield
  python-pytz
  python-redis
  python-setuptools
  python-six
  python-sqlparse
  python-wcwidth
)
makedepends=(
  git
  python-build
  python-installer
  python-poetry-core
)
optdepends=(
  'python-boto3: Amazon Simple Queue Service message queue support'
  'python-psutil: resource usage limit support'
  'python-pymongo: MongoDB as a message broker support'
)
_tag=4a8ef8f388b842b916f2ac713383192eec87b8d8
source=(
  git+https://github.com/Koed00/django-q.git#tag=${_tag}
  python-django-q-pep517.patch
)
b2sums=('SKIP'
        '2b95ad47f38f1217d21ad11b5f23a602660880b1d6bcb09716bf8b201987153a360cfabf94d7d3028caa46c9a494bc0716d8d69cf576fe78a5890c9508f88ef5')

prepare() {
  cd django-q
  patch -Np1 -i ../python-django-q-pep517.patch
  sed 's/poetry_core>=1.0.0/poetry-core/' -i pyproject.toml
}

pkgver() {
  cd django-q
  git describe --tags | sed 's/^v//'
}

build() {
  cd django-q
  python -m build --wheel --no-isolation
}

package() {
  python -m installer --destdir="${pkgdir}" django-q/dist/*.whl
  rm "${pkgdir}"/usr/lib/python*/site-packages/CHANGELOG.md
  install -Dm 644 django-q/LICENSE -t "${pkgdir}"/usr/share/licenses/python-django-q/
}

# vim: ts=2 sw=2 et: