Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/cymbal/
Date: Sun, 18 Jul 2021 08:35:37
Message-Id: 1626597273.8ad95fd59b9ddc57dcf6c484d27f85af946b8f83.andrewammerlaan@gentoo
1 commit: 8ad95fd59b9ddc57dcf6c484d27f85af946b8f83
2 Author: leycec <leycec <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 16 07:07:34 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 08:34:33 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8ad95fd5
7
8 dev-python/cymbal: add
9
10 add cymbal, a mandatory dependency of CadQuery pywrap
11
12 Signed-off-by: Cecil Curry <leycec <AT> gmail.com>
13 Closes: https://github.com/gentoo/sci/pull/1098
14 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
15
16 dev-python/cymbal/cymbal-1.0.0.ebuild | 34 ++++++++++++++++++++++++++++++++++
17 dev-python/cymbal/metadata.xml | 13 +++++++++++++
18 2 files changed, 47 insertions(+)
19
20 diff --git a/dev-python/cymbal/cymbal-1.0.0.ebuild b/dev-python/cymbal/cymbal-1.0.0.ebuild
21 new file mode 100644
22 index 000000000..a16fcd44c
23 --- /dev/null
24 +++ b/dev-python/cymbal/cymbal-1.0.0.ebuild
25 @@ -0,0 +1,34 @@
26 +# Copyright 1999-2021 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=8
30 +
31 +PYTHON_COMPAT=( python3_{8..10} )
32 +
33 +inherit distutils-r1
34 +
35 +DESCRIPTION="Add functionality missing from the python libclang bindings"
36 +HOMEPAGE="https://pypi.org/project/cymbal"
37 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +
43 +DEPEND="dev-python/clang-python[${PYTHON_USEDEP}]"
44 +RDEPEND="${DEPEND}"
45 +
46 +distutils_enable_tests pytest
47 +
48 +# Prevent "setup.py" from installing the "tests" package.
49 +src_prepare() {
50 + sed -i -e 's~\(packages = \)find_packages(),~\1["cymbal"],~' \
51 + setup.py || die
52 +
53 + default_src_prepare
54 +}
55 +
56 +# Omit "test_class_template_arg", failing due to outdated clang assumptions.
57 +python_test() {
58 + pytest -k 'not test_class_template_arg' || die
59 +}
60
61 diff --git a/dev-python/cymbal/metadata.xml b/dev-python/cymbal/metadata.xml
62 new file mode 100644
63 index 000000000..02975a0d9
64 --- /dev/null
65 +++ b/dev-python/cymbal/metadata.xml
66 @@ -0,0 +1,13 @@
67 +<?xml version="1.0" encoding="UTF-8"?>
68 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
69 +<pkgmetadata>
70 + <maintainer type="project">
71 + <email>sci@g.o</email>
72 + <name>Gentoo Science Project</name>
73 + </maintainer>
74 + <stabilize-allarches/>
75 + <upstream>
76 + <remote-id type="pypi">cymbal</remote-id>
77 + <remote-id type="github">AndrewWalker/cymbal</remote-id>
78 + </upstream>
79 +</pkgmetadata>