Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-cstruct/
Date: Tue, 23 Aug 2022 17:07:43
Message-Id: 1661273666.1d9bfc3a809d61c360d8082d73889f42932dac26.arthurzam@gentoo
1 commit: 1d9bfc3a809d61c360d8082d73889f42932dac26
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 23 16:54:26 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 16:54:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d9bfc3a
7
8 dev-python/python-cstruct: add 2.2
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/python-cstruct/Manifest | 1 +
13 .../python-cstruct/python-cstruct-2.2.ebuild | 30 ++++++++++++++++++++++
14 2 files changed, 31 insertions(+)
15
16 diff --git a/dev-python/python-cstruct/Manifest b/dev-python/python-cstruct/Manifest
17 index 5a7d48a0dbb3..9e7cc4c9d953 100644
18 --- a/dev-python/python-cstruct/Manifest
19 +++ b/dev-python/python-cstruct/Manifest
20 @@ -1 +1,2 @@
21 DIST python-cstruct-2.1.tar.gz 17298 BLAKE2B 9acc10f0d386c4413634945fc94b3e44210617c408ee18cf6533f70e7d64c609d463e9beceeea7c79b125e0bf0ab67a720d9ff98f45b4e7ce1f51d9280b55733 SHA512 c56c87d291c4aa2afcfdbcbbc19c03ec634b6fb0dcde9d516ef2a9079be2fea52a053c47cd20dfc0fe6537ac90939364da659d8eb4763069a9990681207d432c
22 +DIST python-cstruct-2.2.gh.tar.gz 18764 BLAKE2B 75aaffae27fef59799e52866f8169cc5d7362ef1553a56986f361ef7cfb7ca3e7d8c67fe0f112ec8e03ddacf45885e19fc1ce0d9d27c7581deafbf7e7fe1789b SHA512 5a1d62b596fef08a48020557e82fc81360430d94f18ce0667919815d57b944102067c2fe5723372616f73c995afd3a1f674e4a37e406d0dc7eeaf9fe3ef8f484
23
24 diff --git a/dev-python/python-cstruct/python-cstruct-2.2.ebuild b/dev-python/python-cstruct/python-cstruct-2.2.ebuild
25 new file mode 100644
26 index 000000000000..7b8d01c50942
27 --- /dev/null
28 +++ b/dev-python/python-cstruct/python-cstruct-2.2.ebuild
29 @@ -0,0 +1,30 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="C-style structs for Python"
40 +HOMEPAGE="https://github.com/andreax79/python-cstruct
41 + https://pypi.org/project/cstruct/"
42 +SRC_URI="
43 + https://github.com/andreax79/${PN}/archive/v${PV}.tar.gz
44 + -> ${P}.gh.tar.gz
45 +"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +DOCS=( README.md )
52 +
53 +distutils_enable_tests pytest
54 +
55 +src_prepare() {
56 + distutils-r1_src_prepare
57 +
58 + sed -e "/find_packages(/s@exclude=\[@&'tests', @" -i setup.py || die
59 +}