Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pypandoc/
Date: Fri, 01 May 2020 17:28:00
Message-Id: 1588353785.34799235b4d6b8d392bbe60676645dd0b140e716.andrewammerlaan@gentoo
1 commit: 34799235b4d6b8d392bbe60676645dd0b140e716
2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com>
3 AuthorDate: Fri May 1 17:23:05 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Fri May 1 17:23:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=34799235
7
8 dev-python/pypandoc: new package; add version 1.5
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>
12
13 dev-python/pypandoc/Manifest | 1 +
14 dev-python/pypandoc/metadata.xml | 12 ++++++++++
15 dev-python/pypandoc/pypandoc-1.5.ebuild | 40 +++++++++++++++++++++++++++++++++
16 3 files changed, 53 insertions(+)
17
18 diff --git a/dev-python/pypandoc/Manifest b/dev-python/pypandoc/Manifest
19 new file mode 100644
20 index 0000000..cc22e0e
21 --- /dev/null
22 +++ b/dev-python/pypandoc/Manifest
23 @@ -0,0 +1 @@
24 +DIST pypandoc-1.5.tar.gz 26494 BLAKE2B f265effc55db8b1f706a4541f18119de2d0cccc7ab59ea83f80e6051ae4a4e36128d6b36c51e255c2ed0b0577c1df46284820c97f629fc3b790c301448a6bb39 SHA512 511f5f5f7bff8de686c3f74d3756d27a3ae245803e2e9b45abc957acf112b306eff057ce87e8f3b335de00b97d4753de31e9681830d9aa776247ca707683ed13
25
26 diff --git a/dev-python/pypandoc/metadata.xml b/dev-python/pypandoc/metadata.xml
27 new file mode 100644
28 index 0000000..e2184ea
29 --- /dev/null
30 +++ b/dev-python/pypandoc/metadata.xml
31 @@ -0,0 +1,12 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>xgqt@××××××××××.com</email>
37 + <name>Maciej Barć</name>
38 + </maintainer>
39 + <upstream>
40 + <remote-id type="github">bebraw/pypandoc</remote-id>
41 + <remote-id type="pypi">pypandoc</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/pypandoc/pypandoc-1.5.ebuild b/dev-python/pypandoc/pypandoc-1.5.ebuild
46 new file mode 100644
47 index 0000000..6f5d84c
48 --- /dev/null
49 +++ b/dev-python/pypandoc/pypandoc-1.5.ebuild
50 @@ -0,0 +1,40 @@
51 +# Copyright 1999-2020 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=7
55 +
56 +PYTHON_COMPAT=( python3_{6,7} )
57 +
58 +inherit distutils-r1
59 +
60 +DESCRIPTION="Pypandoc provides a thin wrapper for pandoc, a universal document converter"
61 +HOMEPAGE="
62 + https://github.com/bebraw/pypandoc
63 + https://pypi.org/project/pypandoc/
64 +"
65 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +KEYWORDS="~amd64"
70 +
71 +RDEPEND="
72 + app-text/pandoc
73 + dev-haskell/pandoc-citeproc
74 + dev-texlive/texlive-latex
75 +"
76 +DEPEND="
77 + ${RDEPEND}
78 + >=dev-python/wheel-0.25.0[${PYTHON_USEDEP}]
79 + dev-python/setuptools[${PYTHON_USEDEP}]
80 + dev-python/urllib3[${PYTHON_USEDEP}]
81 +"
82 +
83 +python_test() {
84 + # Skip tests. Wants: internet access
85 + sed -i -e 's:test_basic_conversion_from_http_url:_&:' tests.py || die
86 + # Skip tests. Wants: nonexistent font
87 + sed -i -e 's:test_pdf_conversion:_&:' tests.py || die
88 +
89 + "${EPYTHON}" tests.py || die "Tests fail with ${EPYTHON}"
90 +}