blob: bf134afed32852050b385ad3764b48caa3d53d27 (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: pfm <vorticity at mail dot ru>
## python-twisted[tls] requires the following dependencies
## * python-pyopenssl
## * python-idna
## * python-service-identity
pkgname=python-txsni
pkgver=0.2.0
pkgrel=4
pkgdesc="Simple support for running a TLS server with Twisted"
arch=('any')
url="https://github.com/glyph/txsni"
license=('MIT')
depends=(
'python-idna'
'python-pyopenssl'
'python-service-identity'
'python-twisted')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/txsni/TxSNI-$pkgver.tar.gz"
'LICENSE')
sha256sums=('bf16d221c84bf222434fde9d1f75329149bf6bf9da049855bddffbff2b7886e1'
'2a41b4da4e95c95c4a9c09f87652f67cb92d7072316cc12fc16db1773976e5e3')
prepare() {
cd "TxSNI-$pkgver"
sed -i '/txsni.test/d' setup.py
}
build() {
cd "TxSNI-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "TxSNI-$pkgver"
pytest -x --disable-warnings
}
package() {
export PYTHONHASHSEED=0
cd "TxSNI-$pkgver"
python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
}
|