summaryrefslogtreecommitdiff
path: root/dev-python/pyproj
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/pyproj
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/pyproj')
-rw-r--r--dev-python/pyproj/Manifest3
-rw-r--r--dev-python/pyproj/files/pyproj-2.4.2-conftest.patch31
-rw-r--r--dev-python/pyproj/pyproj-2.4.2.ebuild37
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/pyproj/Manifest b/dev-python/pyproj/Manifest
index 3d1dbe62cc7d..9c9937b08b73 100644
--- a/dev-python/pyproj/Manifest
+++ b/dev-python/pyproj/Manifest
@@ -1,3 +1,6 @@
+AUX pyproj-2.4.2-conftest.patch 803 BLAKE2B 60806213e22edaf3457046e46303c95544085d9a870692677a8ef06506a48c7f7f380f4932a5b33f1465a8a0298e15a02033ce9cd690d631bfef9687a60c06b5 SHA512 2d5222ae3a91f61994b9590b08ed513c73be0dbb39b612c1eef4ca4766bef4981b4db23be0fb1ced2a88c3de7b400f8ba5086d4fb8837ed2a43a6cb6c04899f3
DIST pyproj-1.9.5.1.tar.gz 4424543 BLAKE2B cdf954ec0fe794f354b246fcd5afeac01b796f84cc2456efce3e289fcfb12074d7352c9fa7e9d74356199135dfa9814c07da9379f85771dbb7130b8b9b7ecc34 SHA512 b0e0f85be01a3399cb41c4bf29d1a63ecb519fd45d6092a3558060d93c715afafd12f7532c8665839225ad7243e739a117677f6747bf34a0ccbde5e75c85f324
+DIST pyproj-2.4.2.tar.gz 463252 BLAKE2B aa80ee3052f42f0d49d02b1dfa3d1790e02fe6aa4092319ff8e827b0a341cff2cb4779891f74919c2b14781d841b3662154882b5f218a22b55ad79397f3eb4a7 SHA512 20f0a742ea5699a6d7a621e93157512478de69ba740bb7b0df46b6d5668f6db93b07e1fc0bf4d089362275ea8edddf3100a972a533ed8b6a0bc56a04a20d4ef9
EBUILD pyproj-1.9.5.1-r1.ebuild 705 BLAKE2B 2f7086856381e17a62e1cc78b9f815d3ab1dcb8b36706f5326c82256c012fb07322bc9cf495d86b97e0b061e066013b13a8478197b9dfcd8de739e9c771c3460 SHA512 b2fadc42b327263b6ba6baafb23de6ad5c63eccd35cbe41853e22710584f0e025ad041760ac979e9c5a04b16108816760a864581e12dbac0a95968405fd8a47c
+EBUILD pyproj-2.4.2.ebuild 877 BLAKE2B 9ec467fb01b28fcf05e3d04beef3a0638e77598859247f88d242b6b67f7b5b89577842856f495f73b65bd867de482a778de1efd15d854f1a2b8dcde5ed908864 SHA512 a4e5f7098396c5a3730f42a2da391895d5750d62f3006c3fdcbb37dd5d469406d15ab964d2b66e4c48bd478827366c6d483b655a8f70a658962ed9271c6c44ca
MISC metadata.xml 413 BLAKE2B 8b30b06984a66d228b50b463a7149f95bfb671d60c3089e88ec11cab7b88fc7c0f044cd879d9e5fec5bc61840c6f35b17e22b93921e3716ce42b3066fe8dedd7 SHA512 84f84c14bce12374abb5014771c1663bb8877d7808e65fe60f698c60b4c7df17db703c6c1c55cb692b0c8f6a94847758e756d6f9bd7e69f59e915b09c71682ea
diff --git a/dev-python/pyproj/files/pyproj-2.4.2-conftest.patch b/dev-python/pyproj/files/pyproj-2.4.2-conftest.patch
new file mode 100644
index 000000000000..36946527b2b2
--- /dev/null
+++ b/dev-python/pyproj/files/pyproj-2.4.2-conftest.patch
@@ -0,0 +1,31 @@
+--- a/test/conftest.py
++++ b/test/conftest.py
+@@ -0,0 +1,28 @@
++import os
++import shutil
++import tempfile
++
++import pytest
++
++import pyproj
++
++
++@pytest.fixture(scope="session")
++def aoi_data_directory():
++ """
++ This is to ensure that the ntv2_0.gsb file is actually
++ missing for the AOI tests.
++ """
++ data_dir = pyproj.datadir.get_data_dir()
++ with tempfile.TemporaryDirectory() as tmpdir:
++ tmp_data_dir = os.path.join(tmpdir, "proj")
++ shutil.copytree(data_dir, tmp_data_dir)
++ try:
++ os.remove(os.path.join(str(tmp_data_dir), "ntv2_0.gsb"))
++ except OSError:
++ pass
++ try:
++ pyproj.datadir.set_data_dir(str(tmp_data_dir))
++ yield
++ finally:
++ pyproj.datadir.set_data_dir(data_dir)
diff --git a/dev-python/pyproj/pyproj-2.4.2.ebuild b/dev-python/pyproj/pyproj-2.4.2.ebuild
new file mode 100644
index 000000000000..9cf1b1cb8b08
--- /dev/null
+++ b/dev-python/pyproj/pyproj-2.4.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Python < 3.6 requires https://pypi.org/project/aenum/
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python interface to the PROJ library"
+HOMEPAGE="https://github.com/jswhit/pyproj"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="doc"
+
+RDEPEND=">=sci-libs/proj-6.2.0"
+DEPEND="${RDEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ sci-libs/Shapely[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=( "${FILESDIR}"/${P}-conftest.patch )
+
+distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
+distutils_enable_tests pytest
+
+python_test() {
+ PROJ_LIB="${EPREFIX}/usr/share/proj" pytest -ra || die
+}