summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-21 13:19:11 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-21 22:48:39 +0200
commit0610c01ba9cfbc8e1f77ddfdd7c8ed77d59a06c4 (patch)
tree98497ba83076452d29aa91a8296306635f4b2c09 /dev-python/pythran
parentnet-firewall/nftables: keyword for ~riscv (diff)
downloadgentoo-0610c01ba9cfbc8e1f77ddfdd7c8ed77d59a06c4.tar.gz
gentoo-0610c01ba9cfbc8e1f77ddfdd7c8ed77d59a06c4.tar.bz2
gentoo-0610c01ba9cfbc8e1f77ddfdd7c8ed77d59a06c4.zip
dev-python/pythran: New package, dep of scipy
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pythran')
-rw-r--r--dev-python/pythran/Manifest1
-rw-r--r--dev-python/pythran/metadata.xml11
-rw-r--r--dev-python/pythran/pythran-0.9.11.ebuild40
3 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pythran/Manifest b/dev-python/pythran/Manifest
new file mode 100644
index 000000000000..a052b3a876eb
--- /dev/null
+++ b/dev-python/pythran/Manifest
@@ -0,0 +1 @@
+DIST pythran-0.9.11.gh.tar.gz 3570395 BLAKE2B deada9a608ed3d883308389d5a6ddfee2f0f74ecc74f1fd87bcee75eecabcab2acd576425b8e92d6fc6b212377f1c7295e766db32082339c98670a964a49ea10 SHA512 c8939b918216803ad8e2a133b16f0d8ea939e4d87d07ddb1a3d131afb0ddb76962c489270431808fbf129e76b5f9dbdc2b625097f37df2eefdb9834d319d028a
diff --git a/dev-python/pythran/metadata.xml b/dev-python/pythran/metadata.xml
new file mode 100644
index 000000000000..852515482ce4
--- /dev/null
+++ b/dev-python/pythran/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">serge-sans-paille/pythran</remote-id>
+ <remote-id type="pypi">pythran</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pythran/pythran-0.9.11.ebuild b/dev-python/pythran/pythran-0.9.11.ebuild
new file mode 100644
index 000000000000..20e8e8c81ad8
--- /dev/null
+++ b/dev-python/pythran/pythran-0.9.11.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..9} )
+inherit distutils-r1
+
+DESCRIPTION="Ahead of Time compiler for numeric kernels"
+HOMEPAGE="
+ https://pypi.org/project/pythran/
+ https://github.com/serge-sans-paille/pythran/"
+SRC_URI="
+ https://github.com/serge-sans-paille/pythran/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ =dev-python/beniget-0.3*[${PYTHON_USEDEP}]
+ dev-python/decorator[${PYTHON_USEDEP}]
+ =dev-python/gast-0.4*[${PYTHON_USEDEP}]
+ >=dev-python/networkx-2[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ >=dev-python/ply-3.4[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ sed -i -e '/pytest-runner/d' setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local -x COLUMNS=80
+ epytest
+}