summaryrefslogtreecommitdiff
path: root/python-peakutils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'python-peakutils/PKGBUILD')
-rw-r--r--python-peakutils/PKGBUILD29
1 files changed, 24 insertions, 5 deletions
diff --git a/python-peakutils/PKGBUILD b/python-peakutils/PKGBUILD
index bea7edce..30c602ff 100644
--- a/python-peakutils/PKGBUILD
+++ b/python-peakutils/PKGBUILD
@@ -4,16 +4,33 @@
pkgbase=python-peakutils
pkgname=('python-peakutils' 'python2-peakutils')
pkgver=1.1.1
-pkgrel=1
+pkgrel='2'
pkgdesc="Peak detection utilities for 1D data"
arch=('any')
url="https://pypi.python.org/pypi/PeakUtils"
license=('MIT')
-_depends=('python-numpy' 'python-scipy')
-_makedepends=('python-setuptools')
+_deppy2=(
+ 'python2>=2.7'
+ 'python2<2.8'
+)
+_deppy=(
+ 'python>=3.7'
+ 'python<3.8'
+)
+_depends=(
+ 'python-numpy'
+ 'python-scipy'
+)
+_makedepends=(
+ 'python-setuptools'
+)
makedepends=(
- "${_depends[@]}" "${_depends[@]/python/python2}"
- "${_makedepends[@]}" "${_makedepends[@]/python/python2}"
+ "${_deppy[@]}"
+ "${_deppy2[@]}"
+ "${_depends[@]}"
+ "${_depends[@]/python/python2}"
+ "${_makedepends[@]}"
+ "${_makedepends[@]/python/python2}"
)
source=("https://pypi.python.org/packages/cf/a0/9e9c716221b541c8b919a5c36f098ef5a34329ea881ff44ff581b427a36a/PeakUtils-${pkgver}.tar.gz")
md5sums=('edd12f75854195a7d955bc3276bca2b5')
@@ -35,6 +52,7 @@ build() {
package_python-peakutils() {
depends=(
+ "${_deppy[@]}"
"${_depends[@]}"
)
@@ -44,6 +62,7 @@ package_python-peakutils() {
package_python2-peakutils() {
depends=(
+ "${_deppy2[@]}"
"${_depends[@]/python/python2}"
)