diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-24 14:47:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-24 14:47:38 +0100 |
commit | b4d43e8c611df4a8061b6f88d9e9f6b1e3c83903 (patch) | |
tree | 911928b566777494d08ebe2c16cb64f15af71901 /dev-python/csvkit | |
parent | 61f10f985e19dfe20a4d9552902625edd5b6eabb (diff) |
gentoo resync : 24.06.2021
Diffstat (limited to 'dev-python/csvkit')
-rw-r--r-- | dev-python/csvkit/Manifest | 3 | ||||
-rw-r--r-- | dev-python/csvkit/csvkit-1.0.5.ebuild | 47 | ||||
-rw-r--r-- | dev-python/csvkit/metadata.xml | 13 |
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/csvkit/Manifest b/dev-python/csvkit/Manifest new file mode 100644 index 000000000000..d2ff863e20cb --- /dev/null +++ b/dev-python/csvkit/Manifest @@ -0,0 +1,3 @@ +DIST csvkit-1.0.5.tar.gz 3783495 BLAKE2B 19210c23480cb3068af74c922a3495612f40bbf5c4985f7018c9c185564dd0c101292f165ddd03440220f582bfdc1590e2f75e8e5c92edd71e76e46a73b26547 SHA512 62dc7a5eefeda9c8824b24f8844b6c1ead5449797d9d004111885b03a1989ad89d1f48b3b7d4a69130885b85cc3c1352910737e416fc19f2038525632b1569f6 +EBUILD csvkit-1.0.5.ebuild 1297 BLAKE2B e00ecf1a78ab98bef348790fc76426f305f598f17893e36588e6d89e0f948f5c7b48b60e6be08d3918ee531696dee592be679759a8054a341130222ad1b733c2 SHA512 7a817661dc9279c841718449a63e218650358cfc8ea9f3bbe70e6b92f33da3156acfeda79be582660841eaa1182eeacc368815a2293cbe1b5fc23b7846755cb7 +MISC metadata.xml 500 BLAKE2B b73dbe5965b76d39d6e97dd46e7de1c0d583fe0b48de00528169068c6d86123c25000a37115d2f9db48eb687a95eb6742975daad252591d4ff18a8ca65b6f4c4 SHA512 daea7035cb0f2e5a852c457e3bdacb15ed5ed618e21dbfc6a42d25d92b8b7f17f46e597783c5fde45a8e71719e035d78cc94ae2c8d76be3e5f36e3f559856b47 diff --git a/dev-python/csvkit/csvkit-1.0.5.ebuild b/dev-python/csvkit/csvkit-1.0.5.ebuild new file mode 100644 index 000000000000..1430aee3a914 --- /dev/null +++ b/dev-python/csvkit/csvkit-1.0.5.ebuild @@ -0,0 +1,47 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{8..9} ) +DISTUTILS_USE_SETUPTOOLS=bdepend + +inherit distutils-r1 + +DESCRIPTION="A suite of utilities for converting to and working with CSV." +HOMEPAGE="https://github.com/wireservice/csvkit https://pypi.org/project/csvkit/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test +xml" +RESTRICT="!test? ( test )" + +# Other packages have BDEPEND="test? ( dev-python/csvkit[xml] )" +AGATE_VERSION_DEP=">=dev-python/agate-1.6.1" +TEST_AGAINST_RDEPEND="xml? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" +RDEPEND=" + ${AGATE_VERSION_DEP}[${PYTHON_USEDEP}] + >=dev-python/agate-excel-0.2.2[${PYTHON_USEDEP}] + >=dev-python/agate-dbf-0.2.0[${PYTHON_USEDEP}] + >=dev-python/agate-sql-0.5.3[${PYTHON_USEDEP}] + >=dev-python/six-1.6.1[${PYTHON_USEDEP}] + + ${TEST_AGAINST_RDEPEND} +" +BDEPEND="test? ( ${AGATE_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +python_test() { + local pytest_args test_name xfails + + xfails=( + tests/test_utilities/test_in2csv.py::TestIn2CSV::test_convert_dbf + ) + + for test_name in "${xfails[@]}"; do + pytest_args+=(--deselect "${test_name}") + done + + epytest "${pytest_args[@]}" || die +} diff --git a/dev-python/csvkit/metadata.xml b/dev-python/csvkit/metadata.xml new file mode 100644 index 000000000000..e13598b0ff4a --- /dev/null +++ b/dev-python/csvkit/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> + <upstream> + <bugs-to>https://github.com/wireservice/csvkit/issues</bugs-to> + <changelog>https://github.com/wireservice/csvkit/blob/master/CHANGELOG.rst</changelog> + <remote-id type="pypi">csvkit</remote-id> + <remote-id type="github">wireservice/csvkit</remote-id> + </upstream> +</pkgmetadata> |