blob: 5654047a02340de7ae66c95b5795e574ba190b56 (
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
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgname=properdocs-theme-mkdocs
#_pname=${pkgname#python-}
#_pyname=${_pname//-/_}
_pyname=${pkgname//-/_}
#pkgname=("python-${_pname}")
#"python-${_pname}-doc")
pkgver=1.6.7
pkgrel=1
pkgdesc="'mkdocs' theme for ProperDocs, originally made for MkDocs"
arch=("any")
url="https://github.com/missinglinkelectronics/sphinxcontrib-globalsubs"
license=('BSD-2-Clause')
makedepends=('python-hatchling'
'python-babel'
'python-setuptools'
'python-build'
'python-installer')
checkdepends=('python-nose')
#checkdepends=('python-pytest-import-check')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('2ed30991f096e4824ac3af24c13775e2120dd436038b264bb1396f2f3957c017')
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python -m build --wheel --no-isolation --skip-dependency-check
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
# mkdir -p dist/lib
# bsdtar -xpf dist/${_pyname/-/_}-${pkgver}-py3-none-any.whl -C dist/lib
# pytest dist/lib --import-check -vv -l -ra --color=yes -o console_output_style=count
nosetests -v -x || warning "Tests failed"
}
package() {
depends=('properdocs' 'python-babel')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|