summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5db34aa16c26c8f5bbb62ac51abce39c9800623 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: S. Leduc <sebastien@sleduc.fr>
# Contributor: redfish <redfish@galactica.pw>
# Contributor: Amr Hassan <amr.hassan@gmail.com>
# Contributor: Nathan Owe <ndowens.aur at gmail dot com>
# Contributor: G. Richard Bellamy <rbellamy@pteradigm.com>

pkgname=flexget
_name=Flexget
pkgver=3.8.4
pkgrel=1
pkgdesc="Multipurpose automation tool for downloading media content from different sources"
arch=(any)
url="https://github.com/flexget/flexget"
license=(MIT)
depends=(
  libnotify
  python
  python-apscheduler
  python-babelfish
  python-beautifulsoup4
  python-cherrypy
  python-cloudscraper
  python-dateutil
  python-dnspython
  python-feedparser
  python-flask
  python-flask-compress
  python-flask-cors
  python-flask-login
  python-flask-restx
  python-gobject
  python-guessit
  python-html5lib
  python-jinja
  python-jsonschema
  python-loguru
  python-lxml
  python-packaging
  python-paramiko
  python-pillow
  python-plexapi
  python-psutil
  python-pynzb
  python-pyparsing
  python-pyrss2gen
  python-pysftp
  python-rebulk
  python-requests
  python-rich
  python-rpyc
  python-setuptools
  python-sqlalchemy
  python-werkzeug
  python-yaml
  python-zxcvbn
)
optdepends=(
  'python-boto3: SNS output plugin'
  'python-rarfile: decompress plugin'
  'python-transmissionrpc: Transmission support'
)
makedepends=(
  python-build
  python-installer
  python-wheel
)
checkdepends=(
  python-boto3
  python-pytest
  python-rarfile
  python-transmissionrpc
  python-vcrpy
)

source=(
  "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz"
  "flexget.service"
  "flexget@.service"
)
sha256sums=(
  '63d4d3e357211ee6891a6221d4dbeeffe1aab5374b75e75f8f615877882dae9e'
  'e2c3a958ed0c286337cd37fba1d6cbdf4306c57fcddf2b9cc43615ce80ae83aa'
  'aceecee5496a34c14c12ed5ad8b97197de32896f358b5aef63a84bf4a419756a'
)

_archive="$_name-$pkgver"

build() {
  cd "$_archive"

  python -m build --wheel --no-isolation
}

check() {
  cd "$_archive"

  python -m pytest \
    -k "\
      not test_rar \
      and not test_delete_rar \
      and not test_list_add \
      and not test_list_match \
      and not test_list_remove \
    "
}

package() {
  cd "$_archive"

  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dvm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  install -Dvm644 "$srcdir/$pkgname"{,@}.service -t "$pkgdir/usr/lib/systemd/user/"
}