summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-02-17 22:07:51 +0000
committerMarek Szuba <marecki@gentoo.org>2022-02-17 22:17:47 +0000
commit881007ddad15be0f2a2257469325da05e664fcae (patch)
tree11647161a0c938e9ed44ab2bcee69f5186a5db8e /dev-python
parentdev-python/mapbox_earcut: initial import (diff)
downloadgentoo-881007ddad15be0f2a2257469325da05e664fcae.tar.gz
gentoo-881007ddad15be0f2a2257469325da05e664fcae.tar.bz2
gentoo-881007ddad15be0f2a2257469325da05e664fcae.zip
dev-python/meshio: initial import
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/meshio/Manifest1
-rw-r--r--dev-python/meshio/meshio-5.3.0.ebuild28
-rw-r--r--dev-python/meshio/metadata.xml13
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/meshio/Manifest b/dev-python/meshio/Manifest
new file mode 100644
index 000000000000..ad8706dcafa4
--- /dev/null
+++ b/dev-python/meshio/Manifest
@@ -0,0 +1 @@
+DIST meshio-5.3.0.tar.gz 491246 BLAKE2B 0fd867c2ddabb29cd88dfdea1b5ef04ebf8d63ed957df5df7c426a00f0de409dcd556de4530dec91e71126671e7048af071f734e3d1c375fc67de0403edd7f37 SHA512 2304c75b74093120655cbfae6ec7b770de6bfdbe677c84e997449df91d7d3fd6b61c946d00bf57eba99e5812a08a032c55bf2d4c81316b356016d818b329f795
diff --git a/dev-python/meshio/meshio-5.3.0.ebuild b/dev-python/meshio/meshio-5.3.0.ebuild
new file mode 100644
index 000000000000..770099433c77
--- /dev/null
+++ b/dev-python/meshio/meshio-5.3.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1
+
+DESCRIPTION="Input/output for many mesh formats"
+HOMEPAGE="https://github.com/nschloe/meshio"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="hdf5 netcdf"
+
+# Only some of the hdf5 tests are skipped if h5py is not found
+REQUIRED_USE="test? ( hdf5 )"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/rich[${PYTHON_USEDEP}]
+ hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
+ netcdf? ( dev-python/netcdf4-python[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest
diff --git a/dev-python/meshio/metadata.xml b/dev-python/meshio/metadata.xml
new file mode 100644
index 000000000000..c168c1788dfb
--- /dev/null
+++ b/dev-python/meshio/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="github">nschloe/meshio</remote-id>
+ <remote-id type="pypi">meshio</remote-id>
+ </upstream>
+</pkgmetadata>