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/cadquery/
Date: Wed, 22 Jun 2022 20:31:45
Message-Id: 1655929180.52834e02b0f405e40e57c03cc806b309a90d9ba2.andrewammerlaan@gentoo
1 commit: 52834e02b0f405e40e57c03cc806b309a90d9ba2
2 Author: Vladimir Shapranov <equidamoid <AT> gmail <DOT> com>
3 AuthorDate: Sun Jun 19 10:44:47 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 22 20:19:40 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=52834e02
7
8 dev-python/cadquery: add 2.2_rc20220506
9
10 Signed-off-by: Vladimir Shapranov <equidamoid <AT> gmail.com>
11 Closes: https://github.com/gentoo/sci/pull/1152
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 dev-python/cadquery/cadquery-2.2_rc20220506.ebuild | 58 ++++++++++++++++++++++
15 1 file changed, 58 insertions(+)
16
17 diff --git a/dev-python/cadquery/cadquery-2.2_rc20220506.ebuild b/dev-python/cadquery/cadquery-2.2_rc20220506.ebuild
18 new file mode 100644
19 index 000000000..26aa07b6d
20 --- /dev/null
21 +++ b/dev-python/cadquery/cadquery-2.2_rc20220506.ebuild
22 @@ -0,0 +1,58 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +DISTUTILS_USE_PEP517=setuptools
29 +DISTUTILS_SINGLE_IMPL=1
30 +PYTHON_COMPAT=( python3_{8..10} )
31 +
32 +inherit distutils-r1
33 +
34 +DESCRIPTION="Python parametric CAD scripting framework based on OCCT"
35 +HOMEPAGE="https://cadquery.readthedocs.io"
36 +
37 +# The official CadQuery 2.1 tarball requires the obsolete OCCT 7.4.0, but
38 +# CadQuery 2.2 has yet to be officially released. We instead package a commit
39 +# known to work as expected with OCCT 7.5.2.
40 +MY_COMMIT="803a05e78c233fdb537a8604c3f2b56a52179bbe"
41 +
42 +#FIXME: Uncomment on bumping to the next stable release.
43 +# SRC_URI="https://github.com/CadQuery/cadquery/archive/refs/tags/${PV}.tar.gz"
44 +SRC_URI="https://github.com/CadQuery/cadquery/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +# Dependencies are intentionally listed in "conda/meta.yml" order. Due to its
51 +# Anaconda focus, "setup.py" currently fails to list dependencies.
52 +BDEPEND="
53 + test? (
54 + $(python_gen_cond_dep '
55 + dev-python/docutils[${PYTHON_USEDEP}]
56 + dev-python/path-py[${PYTHON_USEDEP}]
57 + ')
58 + )
59 +"
60 +RDEPEND="
61 + >=dev-python/cadquery-ocp-7.5.0[${PYTHON_SINGLE_USEDEP}]
62 + $(python_gen_cond_dep '
63 + >=dev-python/pyparsing-2.0.0[${PYTHON_USEDEP}]
64 + dev-python/ezdxf[${PYTHON_USEDEP}]
65 + dev-python/ipython[${PYTHON_USEDEP}]
66 + dev-python/typing-extensions[${PYTHON_USEDEP}]
67 + dev-python/nptyping[${PYTHON_USEDEP}]
68 + sci-libs/nlopt[python,${PYTHON_USEDEP}]
69 + dev-python/multimethod[${PYTHON_USEDEP}]
70 + dev-python/typish[${PYTHON_USEDEP}]
71 + ')
72 +"
73 +DEPEND="${RDEPEND}"
74 +
75 +S="${WORKDIR}/${PN}-${MY_COMMIT}"
76 +
77 +distutils_enable_tests pytest
78 +
79 +#FIXME: Uncomment after packaging "dev-python/sphinx-autodoc-typehints".
80 +# distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinx-autodoc-typehints