diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pyproj | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pyproj')
| -rw-r--r-- | dev-python/pyproj/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyproj/files/pyproj-2.4.2-conftest.patch | 31 | ||||
| -rw-r--r-- | dev-python/pyproj/metadata.xml | 14 | ||||
| -rw-r--r-- | dev-python/pyproj/pyproj-2.4.2-r1.ebuild | 37 |
4 files changed, 83 insertions, 0 deletions
diff --git a/dev-python/pyproj/Manifest b/dev-python/pyproj/Manifest new file mode 100644 index 000000000000..294e1a01904d --- /dev/null +++ b/dev-python/pyproj/Manifest @@ -0,0 +1 @@ +DIST pyproj-2.4.2.tar.gz 463252 BLAKE2B aa80ee3052f42f0d49d02b1dfa3d1790e02fe6aa4092319ff8e827b0a341cff2cb4779891f74919c2b14781d841b3662154882b5f218a22b55ad79397f3eb4a7 SHA512 20f0a742ea5699a6d7a621e93157512478de69ba740bb7b0df46b6d5668f6db93b07e1fc0bf4d089362275ea8edddf3100a972a533ed8b6a0bc56a04a20d4ef9 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/metadata.xml b/dev-python/pyproj/metadata.xml new file mode 100644 index 000000000000..24f8dc106a7a --- /dev/null +++ b/dev-python/pyproj/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="google-code">pyproj</remote-id> + <remote-id type="pypi">pyproj</remote-id> + <remote-id type="github">jswhit/pyproj</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/pyproj/pyproj-2.4.2-r1.ebuild b/dev-python/pyproj/pyproj-2.4.2-r1.ebuild new file mode 100644 index 000000000000..df41d38524cc --- /dev/null +++ b/dev-python/pyproj/pyproj-2.4.2-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 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 +} |
