1 |
commit: 90d74393cb702bfac6542c9edbf5fca4b43984ba |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 1 13:12:43 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 1 13:12:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90d74393 |
7 |
|
8 |
sci-libs/branca: Add to tree |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
sci-libs/branca/Manifest | 1 + |
14 |
sci-libs/branca/branca-0.4.2.ebuild | 30 +++++++++++++++++++++++++++ |
15 |
sci-libs/branca/files/branca-0.4.2-test.patch | 14 +++++++++++++ |
16 |
sci-libs/branca/metadata.xml | 16 ++++++++++++++ |
17 |
4 files changed, 61 insertions(+) |
18 |
|
19 |
diff --git a/sci-libs/branca/Manifest b/sci-libs/branca/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..ee2664a8317 |
22 |
--- /dev/null |
23 |
+++ b/sci-libs/branca/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST branca-0.4.2.tar.gz 59337 BLAKE2B 7d7f101a3dcc07c0210f968da2ed41f4a75177b625ce46252024da7dbba82618dbe60886c615c9461c724af76b45c7710f631bc65d5743cee7f18a2052f9db49 SHA512 cefb3b0f41d515492902ef4046cf7f10b638aca8409f5b08f201550ed5a971a441d13243b1ce38ac0b8c0f76cde1329955d26c1856e1f3c25014a6ce0d805fd6 |
26 |
|
27 |
diff --git a/sci-libs/branca/branca-0.4.2.ebuild b/sci-libs/branca/branca-0.4.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..827ed2ca9ac |
30 |
--- /dev/null |
31 |
+++ b/sci-libs/branca/branca-0.4.2.ebuild |
32 |
@@ -0,0 +1,30 @@ |
33 |
+# Copyright 2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8,9} ) |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="spinoff from folium, host the non-map-specific features." |
42 |
+HOMEPAGE="https://github.com/python-visualization/branca" |
43 |
+SRC_URI="${HOMEPAGE}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+PATCHES=( "${FILESDIR}"/${P}-test.patch ) |
50 |
+ |
51 |
+RDEPEND="dev-python/jinja[${PYTHON_USEDEP}]" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ test? ( |
54 |
+ dev-python/selenium[${PYTHON_USEDEP}] |
55 |
+ )" |
56 |
+BDEPEND="" |
57 |
+ |
58 |
+distutils_enable_tests pytest |
59 |
+ |
60 |
+python_test() { |
61 |
+ epytest -m 'not headless' |
62 |
+} |
63 |
|
64 |
diff --git a/sci-libs/branca/files/branca-0.4.2-test.patch b/sci-libs/branca/files/branca-0.4.2-test.patch |
65 |
new file mode 100644 |
66 |
index 00000000000..8c1525d69bf |
67 |
--- /dev/null |
68 |
+++ b/sci-libs/branca/files/branca-0.4.2-test.patch |
69 |
@@ -0,0 +1,14 @@ |
70 |
+--- a/setup.cfg 2021-07-30 21:13:41.303271681 +0200 |
71 |
++++ b/setup.cfg 2021-07-30 21:13:49.133164898 +0200 |
72 |
+@@ -11,11 +11,6 @@ |
73 |
+ parentdir_prefix = |
74 |
+ |
75 |
+ [tool:pytest] |
76 |
+-flake8-max-line-length = 105 |
77 |
+-flake8-ignore = |
78 |
+- docs/* ALL |
79 |
+- versioneer.py ALL |
80 |
+- branca/_version.py ALL |
81 |
+ markers = |
82 |
+ headless: mark headless tests (deselect with '-m "not headless"') |
83 |
+ |
84 |
|
85 |
diff --git a/sci-libs/branca/metadata.xml b/sci-libs/branca/metadata.xml |
86 |
new file mode 100644 |
87 |
index 00000000000..6e83a06af3a |
88 |
--- /dev/null |
89 |
+++ b/sci-libs/branca/metadata.xml |
90 |
@@ -0,0 +1,16 @@ |
91 |
+<?xml version="1.0" encoding="UTF-8"?> |
92 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
93 |
+<pkgmetadata> |
94 |
+ <maintainer type="person"> |
95 |
+ <email>tupone@g.o</email> |
96 |
+ <name>Tupone Alfredo</name> |
97 |
+ </maintainer> |
98 |
+ <longdescription lang="en"> |
99 |
+ This library is a spinoff from folium, that would host the non-map-specific features. |
100 |
+ It may become a HTML+JS generation library in the future. |
101 |
+ It is based on Jinja2 only. |
102 |
+ </longdescription> |
103 |
+ <upstream> |
104 |
+ <remote-id type="github">python-visualization/branca</remote-id> |
105 |
+ </upstream> |
106 |
+</pkgmetadata> |