blob: 21fbc0dfe2ed4092176fe2f3b50ae3242d639412 (
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
|
# Maintainer: Letu Ren <fantasquex at gmail dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Maikel Wever <maikelwever@gmail.com>
pkgname='python-dparse'
_name=${pkgname#python-}
pkgver=0.6.4
pkgrel=1
pkgdesc="Parser for Python dependency files"
arch=('any')
url="https://github.com/pyupio/dparse"
license=('MIT')
depends=(
'python-packaging'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-hatchling'
)
optdepends=(
'python-pipenv: pipenv'
'python-pyyaml: conda'
'python-poetry: poetry'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('b897bbf1df2cd0fb0c7d45b04e660c256cf368a1f46e34d78b41c167f877b582')
build() {
cd ${_name}-${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd ${_name}-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
# vim:set ts=2 sw=2 et:
|