commit:     8ad95fd59b9ddc57dcf6c484d27f85af946b8f83
Author:     leycec <leycec <AT> gmail <DOT> com>
AuthorDate: Fri Jul 16 07:07:34 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Jul 18 08:34:33 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=8ad95fd5

dev-python/cymbal: add

add cymbal, a mandatory dependency of CadQuery pywrap

Signed-off-by: Cecil Curry <leycec <AT> gmail.com>
Closes: https://github.com/gentoo/sci/pull/1098
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/cymbal/cymbal-1.0.0.ebuild | 34 ++++++++++++++++++++++++++++++++++
 dev-python/cymbal/metadata.xml        | 13 +++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-python/cymbal/cymbal-1.0.0.ebuild 
b/dev-python/cymbal/cymbal-1.0.0.ebuild
new file mode 100644
index 000000000..a16fcd44c
--- /dev/null
+++ b/dev-python/cymbal/cymbal-1.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Add functionality missing from the python libclang bindings"
+HOMEPAGE="https://pypi.org/project/cymbal";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-python/clang-python[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+distutils_enable_tests pytest
+
+# Prevent "setup.py" from installing the "tests" package.
+src_prepare() {
+       sed -i -e 's~\(packages     = \)find_packages(),~\1["cymbal"],~' \
+               setup.py || die
+
+       default_src_prepare
+}
+
+# Omit "test_class_template_arg", failing due to outdated clang assumptions.
+python_test() {
+       pytest -k 'not test_class_template_arg' || die
+}

diff --git a/dev-python/cymbal/metadata.xml b/dev-python/cymbal/metadata.xml
new file mode 100644
index 000000000..02975a0d9
--- /dev/null
+++ b/dev-python/cymbal/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <stabilize-allarches/>
+       <upstream>
+               <remote-id type="pypi">cymbal</remote-id>
+               <remote-id type="github">AndrewWalker/cymbal</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to