summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f993149d92fd954544917ac654f7b180e3e09a7d (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
# Maintainer: Bipin Kumar <kbipinkumar@pm.me>

pkgname=rnalysis
_name=RNAlysis
pkgver=4.1.0
pkgrel=1
pkgdesc='Python-based software for analyzing RNA sequencing data. https://doi.org/10.1101/2022.11.25.517851'
_pkgdesc='Python-based GUI tool for analyzing RNA sequencing data'
arch=(any)
url=https://github.com/GuyTeichman/RNAlysis
license=(MIT)
depends=(
         'python'
         'cython'
         'python-numpy' 
         'python-pandas'
         'python-scipy'
         'python-matplotlib'
         'python-requests'
         'python-scikit-learn'
         'python-seaborn'
         'python-statsmodels'
         'python-joblib'
         'python-tqdm'
         'python-appdirs'
         'python-yaml'
         'python-pyqt5'
         'python-qdarkstyle'
         'qt5-imageformats'
         'python-aiodns'
         'python-defusedxml'
         'python-aiohttp'
         'python-brotli'
         'python-networkx'
         'python-typing_extensions'
         'graphviz'
         'python-graphviz'
         'r'
         'cutadapt'
         'python-numba'
         'python-hdbscan'
         'python-matplotlib-venn'
         'kallisto'
         'python-scikit-learn-extra'
         'python-grid-strategy'
         'python-upsetplot'
         'python-xlmhglite'
         'python-plotly'
         'python-pairwisedist'
         'python-aiolimiter'
         'python-pyvis'
         'python-nest-asyncio'
        )

makedepends=(
             'python-pip'
             'git'
             'gendesk'
             'twine'
             'python-setuptools'
             'python-setuptools-scm'
             'python-sphinx'
             'python-wheel'
             'python-installer'
             'python-build'
             'python-sphinx_rtd_theme'
            'python-pytest-runner'
            'python-pytest'
            'python-anyio'
            'python-pytest-xvfb'
            'python-pytest-qt'
            'python-coverage'
             )

#source=(${_name}-${pkgver}.tar.gz::https://github.com/GuyTeichman/RNAlysis/archive/refs/tags/V"${pkgver}".tar.gz
       # )
source=("git+https://github.com/GuyTeichman/RNAlysis.git#tag=V$pkgver"
	)

#sha256sums=('03eb4e19a306e746e6f7d42bb2f77b72ec07b2cafbf54a941ff0038f72b57b16')
sha256sums=('c4d9353100c45473af731479001f9d4b91a2ced250328fccf12854d85b98257d')


prepare() {
    #cd "$_name-$pkgver"
    cd "$_name"
    gendesk --exec='/usr/bin/rnalysis-gui' --pkgname "$_name" --pkgdesc "$_pkgdesc" -n --icon=RNAlysis --categories=Science
}

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

check(){

    export QT_DEBUG_PLUGINS=1
    #cd "$_name-$pkgver"
    cd "$_name"
    python setup.py pytest | tee check.log
}

package() {

    #cd "$_name-$pkgver"
    cd "$_name"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
    install -Dm644 RNAlysis.desktop -t "$pkgdir"/usr/share/applications/
    install -Dm644 docs/source/RNAlysis.svg -t "$pkgdir"/usr/share/pixmaps/
}