summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/wrapt/Manifest1
-rw-r--r--dev-python/wrapt/metadata.xml12
-rw-r--r--dev-python/wrapt/wrapt-1.11.1.ebuild46
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/wrapt/Manifest b/dev-python/wrapt/Manifest
new file mode 100644
index 0000000..41b05a9
--- /dev/null
+++ b/dev-python/wrapt/Manifest
@@ -0,0 +1 @@
+DIST wrapt-1.11.1.tar.gz 124773 SHA256 8a6fb40e8f8b6a66b4ba81a4044c68e6a7b1782f21cfabc06fb765332b4c3e51 SHA512 9401c3330b31ebb4d1b6dfe10c3e8e4d931ec43cbc12ddd4b0b74af9a0912b35f4ccdd8530e20766616d3bea2296b34cd0589cf6ac3a1cb708dad8d8c049dde5 WHIRLPOOL d6ed20799beb027734b95fd4dfe8d9bb3f900c9f817c4032b6ad0b37e6f20cc704500d433c5e8cdab8b01be366d11b82dbec03f6e67850d6781788a7fad87a0a
diff --git a/dev-python/wrapt/metadata.xml b/dev-python/wrapt/metadata.xml
new file mode 100644
index 0000000..b3363f7
--- /dev/null
+++ b/dev-python/wrapt/metadata.xml
@@ -0,0 +1,12 @@
+<?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="github">GrahamDumpleton/wrapt</remote-id>
+ <remote-id type="pypi">wrapt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/wrapt/wrapt-1.11.1.ebuild b/dev-python/wrapt/wrapt-1.11.1.ebuild
new file mode 100644
index 0000000..74b53ac
--- /dev/null
+++ b/dev-python/wrapt/wrapt-1.11.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Module for decorators, wrappers and monkey patching"
+HOMEPAGE="https://github.com/GrahamDumpleton/wrapt"
+SRC_URI="https://github.com/GrahamDumpleton/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="doc test"
+
+DEPEND="
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND=""
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_compile() {
+ local WRAPT_EXTENSIONS=true
+
+ distutils-r1_python_compile
+}
+
+python_test() {
+ py.test -vv || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+
+ distutils-r1_python_install_all
+}