summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4229a66516db3e2a6600beddb1d35bfc6a9377d0 (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
# Maintainer: Alex Hirzel <alex at hirzel period us>

pkgname='python-sphinx-needs'
_name=sphinx_needs
pkgver='5.0.0'
pkgrel=1
pkgdesc="Sphinx needs extension for managing needs/requirements and specifications"
rl="https://www.sphinx-needs.com/"
depends=(
	'python-jsonschema'
	'python-matplotlib'
	'python-requests'
	'python-requests-file'
	'python-sphinx'
	'python-sphinx-data-viewer'
	'python-sphinxcontrib-jquery'
	'python-tomli'
	'python-typing_extensions'
)
makedepends=('python-build' 'python-installer' 'python-poetry' 'python-wheel')
#checkdepends=(
#	'python-defusedxml'
#	'python-lxml'
#	'python-pytest'
#	'python-pytest-cov'
#	'python-pytest-xprocess'
#	'python-pytest-xdist'
#	'python-responses'
#	'python-syrupy'
#)
optdepends=(
	'python-sphinxcontrib-plantuml'
)
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('61b07e7a4efcd0d5246ed8dab699d8fe3bc794331be63ac3afa94edfcfff7572')

build() {
	cd "${srcdir}/${_name}-${pkgver}"
	python -m build --wheel --no-isolation
}

#check() {
#	cd "${srcdir}/${_name}-${pkgver}"
#	python -m pytest test/
#}

package() {
	cd "${srcdir}/${_name}-${pkgver}"
	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
	python -m installer --destdir="$pkgdir" dist/*.whl
}