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/schema/
Date: Sun, 18 Jul 2021 08:35:37
Message-Id: 1626597280.cfc168951fee6da3b27c2ea9e15ad4a541774df0.andrewammerlaan@gentoo
1 commit: cfc168951fee6da3b27c2ea9e15ad4a541774df0
2 Author: leycec <leycec <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 16 07:11:21 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 08:34:40 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=cfc16895
7
8 dev-python/schema: add
9
10 add schema, 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/schema/metadata.xml | 13 +++++++++++++
17 dev-python/schema/schema-0.7.4.ebuild | 28 ++++++++++++++++++++++++++++
18 2 files changed, 41 insertions(+)
19
20 diff --git a/dev-python/schema/metadata.xml b/dev-python/schema/metadata.xml
21 new file mode 100644
22 index 000000000..440ea4da1
23 --- /dev/null
24 +++ b/dev-python/schema/metadata.xml
25 @@ -0,0 +1,13 @@
26 +<?xml version="1.0" encoding="UTF-8"?>
27 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 +<pkgmetadata>
29 + <maintainer type="project">
30 + <email>sci@g.o</email>
31 + <name>Gentoo Science Project</name>
32 + </maintainer>
33 + <stabilize-allarches/>
34 + <upstream>
35 + <remote-id type="pypi">schema</remote-id>
36 + <remote-id type="github">keleshev/schema</remote-id>
37 + </upstream>
38 +</pkgmetadata>
39
40 diff --git a/dev-python/schema/schema-0.7.4.ebuild b/dev-python/schema/schema-0.7.4.ebuild
41 new file mode 100644
42 index 000000000..05e8712bb
43 --- /dev/null
44 +++ b/dev-python/schema/schema-0.7.4.ebuild
45 @@ -0,0 +1,28 @@
46 +# Copyright 1999-2021 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=8
50 +
51 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
52 +
53 +inherit distutils-r1
54 +
55 +DESCRIPTION="Schema validation just got Pythonic"
56 +HOMEPAGE="https://pypi.org/project/schema"
57 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
58 +
59 +LICENSE="MIT"
60 +SLOT="0"
61 +KEYWORDS="~amd64 ~x86"
62 +
63 +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
64 +
65 +distutils_enable_tests pytest
66 +
67 +src_prepare() {
68 + distutils-r1_src_prepare
69 +
70 + # Prevent schema from unconditionally requiring the last-rited contextlib2,
71 + # which schema actually conditionally requires only under EOL Python 2.x.
72 + sed -i -e '/\binstall_requires=/d' setup.py || die
73 +}