blob: 4ee14651e30d78ae5fcdf8a8e086ec9f4b26970c (
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
54
55
56
57
58
|
# Maintainer: Alex Hirzel <alex at hirzel period us>
pkgname='python-strictdoc'
_name=${pkgname#python-}
pkgver='0.5.0'
pkgrel=1
pkgdesc="Software for writing technical requirements and specifications."
url="https://github.com/strictdoc-project/strictdoc"
depends=(
'python-beautifulsoup4'
'python-datauri'
'python-docutils'
'python-fastapi'
'python-html5lib'
'python-jinja'
'python-lxml'
'python-multipart'
'python-pybtex'
'python-pygments'
'python-reqif'
'python-requests'
'python-selenium'
'python-semantic-version'
'python-spdx-tools'
'python-textx'
'python-toml'
'python-tree-sitter'
'python-xlrd'
'python-xlsxwriter'
'uvicorn'
)
optdepends=(
'python-graphviz'
'python-webdriver-manager'
)
makedepends=('python-pipreqs' 'python-setuptools')
license=('Apache-2.0')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('69d6dc8bab3698d601e7ebde20b85aaa0e2f73b58dfa5c438a5475d990f2ce4a444d52f1d43881f21a2a00b69bbe0156befa1a4c8d8d29ddc79f40af7756b6ca')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
# not sure why these end up in the wrong spot...
local _site=$(python -c "import site; print(site.getsitepackages()[0])")
mv \
"${pkgdir}${_site}/LICENSE" \
"${pkgdir}${_site}/README.md" \
"${pkgdir}${_site}/pyproject.toml" \
"${pkgdir}${_site}/${_name}"
}
|