dev-python/owslib: New package
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 14 Jan 2018 22:36:01 +0000 (23:36 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 14 Jan 2018 23:04:49 +0000 (00:04 +0100)
Thanks-to: Marco Genasci <fedeliallalinea@gmail.com>
Closes: https://bugs.gentoo.org/641900
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-python/owslib/Manifest [new file with mode: 0644]
dev-python/owslib/metadata.xml [new file with mode: 0644]
dev-python/owslib/owslib-0.16.0.ebuild [new file with mode: 0644]

diff --git a/dev-python/owslib/Manifest b/dev-python/owslib/Manifest
new file mode 100644 (file)
index 0000000..54d45a8
--- /dev/null
@@ -0,0 +1 @@
+DIST owslib-0.16.0.tar.gz 658145 BLAKE2B 8e32de48192579f10515771c1682b1d1319deb8195ff9c0f9168ea82bb30bbc8bcf7c457c794a79b1121d40f3f544624f0a9789b0f6f36632c6457f396fa78c9 SHA512 a468352dfdb62bea1e6189efcc198237cb909051e51782abb15093e328ca7d3d379e88d0466e42c39ce9bc201a3be828a779193666bf9befe8d501355aaddbf4
diff --git a/dev-python/owslib/metadata.xml b/dev-python/owslib/metadata.xml
new file mode 100644 (file)
index 0000000..01e0add
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>sci-geosciences@gentoo.org</email>
+               <name>Gentoo Geosciences Project</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>python@gentoo.org</email>
+               <name>Python</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">geopython/OWSLib</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/dev-python/owslib/owslib-0.16.0.ebuild b/dev-python/owslib/owslib-0.16.0.ebuild
new file mode 100644 (file)
index 0000000..905b9c4
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_5 )
+inherit distutils-r1
+
+DESCRIPTION="Library for client programming with Open Geospatial Consortium web service"
+HOMEPAGE="https://geopython.github.io/OWSLib"
+SRC_URI="https://github.com/geopython/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+       dev-python/pyproj[${PYTHON_USEDEP}]
+       dev-python/python-dateutil[${PYTHON_USEDEP}]
+       dev-python/pytz[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]
+       || (
+               dev-python/elementtree[${PYTHON_USEDEP}]
+               dev-python/lxml[${PYTHON_USEDEP}]
+       )
+"
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? (
+               dev-python/pillow[${PYTHON_USEDEP}]
+               dev-python/pytest[${PYTHON_USEDEP}]
+               dev-python/pytest-cov[${PYTHON_USEDEP}]
+               dev-python/tox[${PYTHON_USEDEP}]
+       )
+"
+
+RESTRICT="test" # tests require WAN access
+
+S="${WORKDIR}/OWSLib-${PV}"
+
+python_test() {
+       "${EPYTHON}" "${S}/setup.py" test || die
+}