blob: dd5fb3ae0dfe93315672e7a0ef920745d522bed4 (
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
|
# Maintainer: piernov <piernov@piernov.org>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
pkgname=devpi-server
pkgver=6.12.1
pkgrel=1
pkgdesc="Python PyPi staging server and release tool"
arch=('any')
url="https://doc.devpi.net/"
license=('MIT')
groups=('devpi')
depends=(
'python>=3.7'
'python-py'
'python-argon2_cffi'
'python-appdirs'
'python-attrs'
'python-defusedxml'
'devpi-common'
'python-execnet'
'python-httpx'
'python-itsdangerous'
'python-passlib'
'python-pluggy'
'python-pyramid'
'python-repoze.lru'
'python-ruamel-yaml'
'python-waitress'
'python-strictyaml')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
optdepends=('devpi-client')
changelog=CHANGELOG
source=(
"https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz"
'devpi-server.service'
'devpi-server.sysusers'
'devpi-server.tmpfiles')
sha256sums=('72bb14b545b2dda6f1b279da3885475b0eb3a763152442abcd41ce39219310c5'
'1ebfe9edc2bf0f368162f15540e48a8e046db0023b5da23e98daf43f0e075a95'
'4327d0e72b277ef7b05dfb4b3bac6ab4c70d55a96c9ad114a90ebb00c954bd48'
'bcd2321ff41bebcf08392ca02dbfaa0ac2693eba3432f0e5793ff384753ce0f1')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
install -Dvm644 "$pkgname.service" -t "$pkgdir/usr/lib/systemd/system/"
install -Dvm644 "$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dvm644 "$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
cd "$pkgname-$pkgver"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 README.rst AUTHORS -t "$pkgdir/usr/share/doc/$pkgname/"
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -dv "$pkgdir/usr/share/licenses/$pkgname/"
ln -sv "$_site/${pkgname/-/_}-$pkgver.dist-info/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
}
# vim:set ts=2 sw=2 et:
|