summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2020-11-25 18:11:21 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-11-26 09:28:01 +0200
commit83d7d31386ff8b8c6f53ef2fca16f3ce32aae894 (patch)
treeb2f7e1ea167d386b5f1a7ebcc8d31bc28334a9b8 /dev-python/dbutils
parentwww-misc/monitorix: Removed version 3.11.0 (diff)
downloadgentoo-83d7d31386ff8b8c6f53ef2fca16f3ce32aae894.tar.gz
gentoo-83d7d31386ff8b8c6f53ef2fca16f3ce32aae894.tar.bz2
gentoo-83d7d31386ff8b8c6f53ef2fca16f3ce32aae894.zip
dev-python/dbutils: new version
Closes: https://bugs.gentoo.org/755044 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/18403 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/dbutils')
-rw-r--r--dev-python/dbutils/Manifest1
-rw-r--r--dev-python/dbutils/dbutils-2.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/dbutils/Manifest b/dev-python/dbutils/Manifest
index 85a6f9281165..cbc2610b6bbf 100644
--- a/dev-python/dbutils/Manifest
+++ b/dev-python/dbutils/Manifest
@@ -1 +1,2 @@
DIST DBUtils-1.3.tar.gz 91733 BLAKE2B 8fb3fd16208c27fbbbbcbf1e7b9de2d4d2e8008916309256bd2ae5494d0ff60071fd3fa839dc7ccbe8832f333bad52d97dc4d176c822cc1ce3d5ce0bb05d637e SHA512 47aaa63144e6a0f4d020adb54fc5f36af01848a12f8adfcbd9889825980a1479b32041c087992de5f44478cc25729d1c97ed6cb094def2b93165f0120f10c5b6
+DIST DBUtils-2.0.tar.gz 92911 BLAKE2B 1822f85b9da1bd7936d01f8069deef10e8ab9b7a5c89de718071cf4783f2845357ccca0e85057d430c57f33a2a7c6d239f632032397bb1f0013a40e42383b5f1 SHA512 7818eab572db4798d0a7a2eaed6c4ba91c79c8517da56db21c07525f0097ca80c0beef1c9608b0b80c3a93f1372f37de7c8ec97f2e33dc4dc4a3d464c5981d13
diff --git a/dev-python/dbutils/dbutils-2.0.ebuild b/dev-python/dbutils/dbutils-2.0.ebuild
new file mode 100644
index 000000000000..13bce71b251b
--- /dev/null
+++ b/dev-python/dbutils/dbutils-2.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+PYTHON_COMPAT=( python3_{6..9} )
+DISTUTILS_USE_SETUPTOOLS=bdepend
+
+inherit distutils-r1
+
+MY_PN="DBUtils"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Database connections for multi-threaded environments"
+HOMEPAGE="
+ https://cito.github.io/DBUtils/
+ https://github.com/Cito/DBUtils
+ https://pypi.org/project/DBUtils/
+"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="OSL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+S="${WORKDIR}/${MY_P}"
+
+distutils_enable_tests nose
+
+python_prepare_all() {
+ #prevent tests from being installed
+ #prevent docs being installed outside /usr/share
+ sed -i -e "s/, 'DBUtils.Tests'//" \
+ -e "/package_data=/d" \
+ setup.py || die "sed failed"
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ dodoc "${S}"/docs/*.rst
+ rm "${S}"/docs/*.rst || die
+ local HTML_DOCS=( "${S}"/docs/. )
+ distutils-r1_python_install_all
+}