blob: 828e5ee1dc665b4fd95f66a3511415354d3689df (
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
|
# Maintainer: Philipp A. <flying-sheep@web.de>
# Contributor: Kyle Meyer <kyle@kyleam.com>
pkgname=snakemake7
pkgver=7.32.4
pkgrel=1
pkgdesc='Python-based language and execution environment for GNU Make-like workflows'
arch=(any)
url='https://snakemake.readthedocs.io'
depends=(
python-appdirs
python-configargparse
python-connection_pool
python-datrie
python-docutils
python-gitpython
python-humanfriendly
python-jinja
python-jsonschema
jupyter-nbformat
python-packaging
python-psutil
'python-pulp>=2.0'
python-yaml
python-requests
python-reretry
'python-smart_open>=3.0'
python-stopit
python-tabulate
python-throttler
python-toposort
python-wrapt
python-yte
)
makedepends=(python-setuptools python-build python-installer python-wheel)
optdepends=(
'python-pygments: For report generation'
'python-biopython: For GenBank/NCBI Entrez support'
'python-easywebdav: For WebDAV support'
'python-pysftp: For SFTP support'
'python-boto3: For AWS support'
'python-moto: For AWS support'
'python-dropbox: For Dropbox support'
'python-ftputil: For FTP support'
'python-xrootd: For XRootD support'
'slacker: For messaging'
)
provides=(snakemake)
conflicts=(snakemake)
license=(MIT)
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('fdc3f15dd7b06fabb7da30d460e0a3b1fba08e4ea91f9c32c47a83705cdc7b6e')
build() {
cd "$srcdir/$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
local pyver=$(python -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))')
# install -d "$pkgdir/etc/bash_completion.d"
#FIXME: this needs snakemake bin to install, what if first install?
# PYTHONPATH="$pkgdir/usr/lib/python$pyver/site-packages:$PYTHONPATH" \
# "$pkgdir/usr/bin/snakemake" --bash-completion >"$pkgdir/etc/bash_completion.d/snakemake"
}
|