summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f43a1dd5229fb1abb6b1c7e9b9e89fb8001df24 (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
# Maintainer: piernov <piernov@piernov.org>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Aleksandar Trifunović <akstrfn at gmail dot com>
# Contributor: Sergey Mastykov <smastykov at gmail dot com>

pkgname=python-pyramid
pkgver=2.0.2
pkgrel=1
pkgdesc='Open source Python web framework'
arch=('any')
url='https://github.com/Pylons/pyramid'
license=('custom:RPL')
depends=(
  'python-hupper'
  'python-plaster'
  'python-plaster-pastedeploy'
  'python-translationstring'
  'python-venusian'
  'python-webob'
  'python-zope-deprecation'
  'python-zope-interface')
makedepends=(
  'python-webtest'
  'python-zope-component'
  'python-nose'
  'python-virtualenv'
  'python-repoze.lru'
  'python-setuptools'
  'python-build'
  'python-installer'
  'python-wheel')
optdepends=(
  'python-pyramid-debugtoolbar: development mode'
  'python-pastedeploy: pserve/pcreate'
  'python-chameleon: pserve/pcreate'
  'python-waitress: pserve/pcreate')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-$pkgver.tar.gz"
        "$pkgname-$pkgver.tar.gz.asc::https://files.pythonhosted.org/packages/source/p/pyramid/pyramid-$pkgver.tar.gz.asc")
sha256sums=('45431b387587ed0fac6213b54d6e9f0936f0cc85238a8f5af7852fc9484c5c77'
            'SKIP')
validpgpkeys=('CC1A48C957AC6ABEF05B2C596BC977B056B829E5')

build() {
  cd "pyramid-$pkgver"
  python -m build --wheel --no-isolation
}

check() {
  cd "pyramid-$pkgver"
  PYTHONPATH=./src pytest -x --disable-warnings
}

package() {
  export PYTHONHASHSEED=0
  cd "pyramid-$pkgver"
  python -m installer --destdir="$pkgdir/" dist/*.whl
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: