# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Jakob Nixdorf <flocke@shadowice.org>

pkgname='python-peakutils'
_pkgname='PeakUtils'
pkgver=1.3.4
pkgrel=4
pkgdesc="Peak detection utilities for 1D data"
arch=('any')
url="https://pypi.python.org/pypi/PeakUtils"
license=('MIT')
depends=(
  'python>=3.11'
  'python<3.12'
  'python-sphinx-better-theme')
makedepends=(
  'python-setuptools')
source=("https://pypi.python.org/packages/79/89/39332b9fadef40443a781c00053beb9ec668181267aec5b7e5865b70e039/${_pkgname}-${pkgver}.tar.gz")
sha512sums=('e654543e694123bafc0416fd754af7f61cb4010767cf5fdeca8d2301ef349faa68105de77f9916663d27c13b0422c60d4913515ca2c01bb787d3ad31c827f592')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
}