blob: b860c769e2394c9575c5a9b8e6a35525de4565e8 (
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
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname=python-tueplots
_pkgname=${pkgname#python-}
pkgver=0.2.1
pkgrel=1
pkgdesc='Extend matplotlib for scientific publications'
arch=('any')
url='https://github.com/pnkraemer/tueplots'
license=('MIT')
groups=()
depends=('python-matplotlib' 'python-numpy')
makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-setuptools-scm' 'python-wheel')
makedepends=('python-build' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cases')
optdepends=()
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('34c894004b89b2fbe983be4c34620e8a73d1456bacd34ccec6fd9dc86163f73d')
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python -m build -nw $srcdir/$_pkgname-$pkgver
}
check() {
$srcdir/$_pkgname-$pkgver
PYTHONPATH=$PWD pytest
}
package() {
cd $srcdir/$_pkgname-$pkgver
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
python -m installer --compile-bytecode=1 --destdir=$pkgdir \
dist/$_pkgname-$pkgver-*-*.whl
}
|