summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Scardovi <marco@scardovi.com>2021-04-18 17:27:06 +0200
committerMichał Górny <mgorny@gentoo.org>2021-04-22 11:16:22 +0200
commitb3b5f7040a113b449c64b369bea90123988c1568 (patch)
treeb05d9614766eff216f2dce6dea778f339c45aa66 /dev-python/tablib
parentdev-python/markuppy: add MarkupPy for testing suite (diff)
downloadgentoo-b3b5f7040a113b449c64b369bea90123988c1568.tar.gz
gentoo-b3b5f7040a113b449c64b369bea90123988c1568.tar.bz2
gentoo-b3b5f7040a113b449c64b369bea90123988c1568.zip
dev-python/tablib: add package for www-apps/netbox-2.11.0
@anthonyryan1 tell me if this helps for netbox Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco@scardovi.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/tablib')
-rw-r--r--dev-python/tablib/Manifest1
-rw-r--r--dev-python/tablib/metadata.xml19
-rw-r--r--dev-python/tablib/tablib-3.0.0.ebuild36
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/tablib/Manifest b/dev-python/tablib/Manifest
new file mode 100644
index 000000000000..7e076250afaa
--- /dev/null
+++ b/dev-python/tablib/Manifest
@@ -0,0 +1 @@
+DIST tablib-3.0.0.tar.gz 95049 BLAKE2B 6c7c39f4ba6d8ad08264d3ed6c848ca37d8e2c834aea863a1f79fdcac783ef5fe25779f7d83d38b07c4e2fa47184964e732bb35a8094a98e1350812c2f6bbc6f SHA512 32deac7a05663da9d96f4ef7dc5c4b5e3b8fc4b7a0477c1a807ae83322035e8a99d4f709dfa11ec19af69ac75d7044a469c1b360cdcde3311cdf97d0f584b0e6
diff --git a/dev-python/tablib/metadata.xml b/dev-python/tablib/metadata.xml
new file mode 100644
index 000000000000..42b7a01d6459
--- /dev/null
+++ b/dev-python/tablib/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>marco@scardovi.com</email>
+ <name>Marco Scardovi</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">tablib</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/tablib/tablib-3.0.0.ebuild b/dev-python/tablib/tablib-3.0.0.ebuild
new file mode 100644
index 000000000000..4957b25fea3e
--- /dev/null
+++ b/dev-python/tablib/tablib-3.0.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Format-agnostic tabular dataset library"
+HOMEPAGE="https://pypi.org/project/tablib/ https://github.com/jazzband/tablib/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD-2"
+KEYWORDS="~amd64"
+
+BDEPEND="
+ test? (
+ dev-python/markuppy[${PYTHON_USEDEP}]
+ dev-python/odfpy[${PYTHON_USEDEP}]
+ dev-python/openpyxl[${PYTHON_USEDEP}]
+ dev-python/pandas[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/tabulate[${PYTHON_USEDEP}]
+ dev-python/xlrd[${PYTHON_USEDEP}]
+ dev-python/xlwt[${PYTHON_USEDEP}]
+ )
+"
+
+src_prepare() {
+ sed -i -e 's:addopts = -rsxX --showlocals --tb=native --cov=tablib --cov=tests --cov-report xml --cov-report term --cov-report html:addopts = -rsxX --showlocals --tb=native:' pytest.ini || die
+ distutils-r1_src_prepare
+}
+
+distutils_enable_tests pytest