summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67928ab83da8f8fee295952257af401c619bfc05 (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=spyder-git
pkgver=6.0.0a1.r358.g2578be8a3
pkgrel=1
pkgdesc="The Scientific Python Development Environment"
arch=('any')
url="https://www.spyder-ide.org/"
license=('MIT')
makedepends=('git' 'python-setuptools' 'python-sphinx')
#'icu'
depends=(
    python-atomicwrites
    python-chardet
    python-cloudpickle
    python-cookiecutter
    python-diff-match-patch
    python-intervaltree
    ipython
    python-jedi
    python-jellyfish
    python-jsonschema
    python-keyring
    jupyter-nbconvert
    python-numpydoc
    python-parso
    python-pexpect
    python-pickleshare
    python-psutil
    python-pygments
    python-pylint
    python-pylint-venv
    python-pyqt5
    python-pyqt5-webengine
    python-lsp-server
    python-lsp-black
    python-pyls-spyder
    python-pyxdg
    python-pyzmq
    python-qdarkstyle
    python-qstylizer
    python-qtawesome
    python-qtconsole
    python-qtpy
    python-rtree
    python-setuptools
    python-sphinx
    python-spyder-kernels
    python-textdistance
    python-three-merge
    python-watchdog
    autopep8
    flake8
    python-pycodestyle
    python-pydocstyle
    python-pyflakes
    python-rope
    yapf
    python-whatthepatch

    python-debugpy
    python-pyuca
)
optdepends=(
    'cython: run Cython files in the IPython Console'
    'python-matplotlib: 2D/3D plotting in the IPython Console'
    'python-numpy: support for N-dimensional arrays in the Variable Explorer'
    'python-pandas: support for DataFrames and Series in the Variable Explorer'
    'python-scipy: support for Matlab workspace in the Variable Explorer'
    'python-sympy: symbolic mathematics in the IPython Console'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" 'spyder3-git')
replaces=('spyder3-git')
source=($pkgname::git+https://github.com/spyder-ide/spyder.git)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  find $pkgname -type f -iname \*.py -exec sed -i -e 's|"pep8"|"pycodestyle"|g' -e "s|'pep8'|'pycodestyle'|g" '{}' \;
}

build() {
  cd $pkgname
  python setup.py build
}

package() {
  cd $pkgname

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1

  install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
  # Install a scalable icon for the spyder3.desktop file
  install -Dm644 spyder/images/spyder.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/spyder3.svg"

  rm -f "$pkgdir/usr/bin/spyder_win_post_install.py"
}