Gentoo Archives: gentoo-commits

From: Theo Anderson <telans@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/hypothesmith/
Date: Wed, 08 Jun 2022 05:14:27
Message-Id: 1654665225.e2b1247ef79a30485fe7f313a0d5a9f7549c262a.telans@gentoo
1 commit: e2b1247ef79a30485fe7f313a0d5a9f7549c262a
2 Author: James Beddek <telans <AT> posteo <DOT> de>
3 AuthorDate: Wed Jun 8 05:06:43 2022 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Wed Jun 8 05:13:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e2b1247e
7
8 dev-python/hypothesmith: new package, add 0.2.0
9
10 Signed-off-by: James Beddek <telans <AT> posteo.de>
11
12 dev-python/hypothesmith/Manifest | 1 +
13 dev-python/hypothesmith/hypothesmith-0.2.0.ebuild | 47 +++++++++++++++++++++++
14 dev-python/hypothesmith/metadata.xml | 8 ++++
15 3 files changed, 56 insertions(+)
16
17 diff --git a/dev-python/hypothesmith/Manifest b/dev-python/hypothesmith/Manifest
18 new file mode 100644
19 index 000000000..37e577843
20 --- /dev/null
21 +++ b/dev-python/hypothesmith/Manifest
22 @@ -0,0 +1 @@
23 +DIST hypothesmith-0.2.0.tar.gz 24933 BLAKE2B 36c5296d2ab5d86a2dcde565bda16aff31de7f0be1cbc487ea2115e6e3baacf5ba740192885dd5a843d53c51932551574c0debd97f1b374a4e0bea48ec4204d4 SHA512 b82627897f0e07e6249ce2d3730134690dbe340b81632a1101b6b6b9a9ac6ccd0f350ba10f729349ef200b9243081f7f58eb760ccbcb4175adfcc5f411a8a045
24
25 diff --git a/dev-python/hypothesmith/hypothesmith-0.2.0.ebuild b/dev-python/hypothesmith/hypothesmith-0.2.0.ebuild
26 new file mode 100644
27 index 000000000..98bb73f53
28 --- /dev/null
29 +++ b/dev-python/hypothesmith/hypothesmith-0.2.0.ebuild
30 @@ -0,0 +1,47 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} ) # python3_11 depends on dev-python/libcst
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Hypothesis strategies for generating Python programs"
41 +HOMEPAGE="https://github.com/Zac-HD/hypothesmith"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="MPL-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="test"
48 +RESTRICT="!test? ( test )"
49 +
50 +src_prepare() {
51 + default
52 + sed -e '/-Werror/d' \
53 + -e '/--cov/d' \
54 + -i tox.ini || die
55 +}
56 +
57 +RDEPEND="
58 + >=dev-python/hypothesis-5.41.0[${PYTHON_USEDEP}]
59 + >=dev-python/lark-0.7.2[${PYTHON_USEDEP}]
60 + >=dev-python/libcst-0.3.8[${PYTHON_USEDEP}]
61 +"
62 +DEPEND="
63 + ${RDEPEND}
64 + test? (
65 + dev-python/black[${PYTHON_USEDEP}]
66 + dev-python/parso[${PYTHON_USEDEP}]
67 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
68 + )
69 +"
70 +
71 +distutils_enable_tests --install pytest
72 +
73 +python_test() {
74 + # https://github.com/Zac-HD/hypothesmith/issues/21
75 + local EPYTEST_DESELECT=( 'tests/test_cst.py::test_source_code_from_libcst_node_type' )
76 + epytest
77 +}
78
79 diff --git a/dev-python/hypothesmith/metadata.xml b/dev-python/hypothesmith/metadata.xml
80 new file mode 100644
81 index 000000000..2924f0387
82 --- /dev/null
83 +++ b/dev-python/hypothesmith/metadata.xml
84 @@ -0,0 +1,8 @@
85 +<?xml version="1.0" encoding="UTF-8"?>
86 +<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
87 +<pkgmetadata>
88 + <maintainer type="person">
89 + <email>telans@××××××.de</email>
90 + <name>James Beddek</name>
91 + </maintainer>
92 +</pkgmetadata>