user/py3-pyrdfa3: new aport
This commit is contained in:
parent
8f3a9b0d01
commit
61b2e414b4
2 changed files with 51 additions and 0 deletions
36
user/py3-pyrdfa3/APKBUILD
Normal file
36
user/py3-pyrdfa3/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
|
pkgname=py3-pyrdfa3
|
||||||
|
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||||
|
_pkgreal=pyRdfa3
|
||||||
|
pkgver=3.5.3
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="pyRdfa Libray"
|
||||||
|
url="https://pypi.python.org/project/pyrdfa3"
|
||||||
|
license="W3C-20150513"
|
||||||
|
arch="noarch"
|
||||||
|
depends="py3-rdflib py3-html5lib py3-isodate"
|
||||||
|
checkdepends="python3-dev"
|
||||||
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||||
|
source="
|
||||||
|
$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/pyRdfa3/pyRdfa3-$pkgver.tar.gz
|
||||||
|
fix-build.patch
|
||||||
|
"
|
||||||
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
98e931a1af7edcfe80f35f3a6b50b0afa8782a3bdbbee6bb609f7e474099273871c9927fcdb3a9c59c8feff5756ddd6bfac3a900bc536f22ce247c7900769b01 py3-pyrdfa3-3.5.3.tar.gz
|
||||||
|
62d5c95c69840884e8bf0b8c0d0c30226f96b5196285317b84a1277d4fcdb79ada4a2f7c7ce3b4bcaf8dbeeb0438b580ae08b2798d70d3f46d76e135890d7a0f fix-build.patch
|
||||||
|
"
|
15
user/py3-pyrdfa3/fix-build.patch
Normal file
15
user/py3-pyrdfa3/fix-build.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/setup.py.orig b/setup.py
|
||||||
|
index 1b004e4..bb7da12 100644
|
||||||
|
--- a/setup.py.orig
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -29,8 +29,8 @@ setup(name="pyRdfa3",
|
||||||
|
'rdfa1.1 = pyRdfa.rdflibparsers:RDFaParser',
|
||||||
|
'application/svg+xml = pyRdfa.rdflibparsers:RDFaParser',
|
||||||
|
'application/xhtml+xml = pyRdfa.rdflibparsers:RDFaParser',
|
||||||
|
- 'hturtle = pyRdfa.rdflibparsers:HTurtleParser'
|
||||||
|
- 'html = pyRdfa.rdflibparsers:StructuredDataParser'
|
||||||
|
+ 'hturtle = pyRdfa.rdflibparsers:HTurtleParser',
|
||||||
|
+ 'html = pyRdfa.rdflibparsers:StructuredDataParser',
|
||||||
|
'html/text = pyRdfa.rdflibparsers:StructuredDataParser'
|
||||||
|
],
|
||||||
|
}
|
Loading…
Reference in a new issue