summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 146b99384e001ed29d0ac246825ebb9331bac2ba (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
# Maintainer: Daniel Bermond <dbermond@archlinux.org>

pkgname=python-torf
pkgver=4.3.0
pkgrel=1
pkgdesc='Python module to create, parse and edit torrent files and magnet links'
arch=('any')
url='https://github.com/rndusr/torf/'
license=('GPL-3.0-or-later')
depends=('python' 'python-flatbencode')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
#checkdepends=('python-pytest' 'python-pytest-httpserver' 'python-pytest-mock' 'python-pytest-xdist')
source=("https://github.com/rndusr/torf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('8194068ba989add1ffd87e8ccef9247b65cde6e483cc05de78ed8689225f52aa')

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

#check() {
#    cd "torf-${pkgver}"
#    pytest #--file-counts='1' --piece-counts='1'
#}

package() {
    python -m installer --destdir="$pkgdir" "torf-${pkgver}/dist"/*.whl
}