mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-14 01:23:23 -04:00
dev-python/pypandoc: new package; add version 1.5
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
1
dev-python/pypandoc/Manifest
Normal file
1
dev-python/pypandoc/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pypandoc-1.5.tar.gz 26494 BLAKE2B f265effc55db8b1f706a4541f18119de2d0cccc7ab59ea83f80e6051ae4a4e36128d6b36c51e255c2ed0b0577c1df46284820c97f629fc3b790c301448a6bb39 SHA512 511f5f5f7bff8de686c3f74d3756d27a3ae245803e2e9b45abc957acf112b306eff057ce87e8f3b335de00b97d4753de31e9681830d9aa776247ca707683ed13
|
||||
12
dev-python/pypandoc/metadata.xml
Normal file
12
dev-python/pypandoc/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>xgqt@protonmail.com</email>
|
||||
<name>Maciej Barć</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">bebraw/pypandoc</remote-id>
|
||||
<remote-id type="pypi">pypandoc</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
40
dev-python/pypandoc/pypandoc-1.5.ebuild
Normal file
40
dev-python/pypandoc/pypandoc-1.5.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Pypandoc provides a thin wrapper for pandoc, a universal document converter"
|
||||
HOMEPAGE="
|
||||
https://github.com/bebraw/pypandoc
|
||||
https://pypi.org/project/pypandoc/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
app-text/pandoc
|
||||
dev-haskell/pandoc-citeproc
|
||||
dev-texlive/texlive-latex
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
>=dev-python/wheel-0.25.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_test() {
|
||||
# Skip tests. Wants: internet access
|
||||
sed -i -e 's:test_basic_conversion_from_http_url:_&:' tests.py || die
|
||||
# Skip tests. Wants: nonexistent font
|
||||
sed -i -e 's:test_pdf_conversion:_&:' tests.py || die
|
||||
|
||||
"${EPYTHON}" tests.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user