1 |
commit: 36ee368becbb62e37e9a548e88e6e9390816c650 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 20:00:06 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 20:39:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36ee368b |
7 |
|
8 |
dev-python/python-magic: add 0.4.25 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-magic/Manifest | 1 + |
13 |
dev-python/python-magic/python-magic-0.4.25.ebuild | 30 ++++++++++++++++++++++ |
14 |
2 files changed, 31 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-magic/Manifest b/dev-python/python-magic/Manifest |
17 |
index da2f7d689171..4b04d9c265d9 100644 |
18 |
--- a/dev-python/python-magic/Manifest |
19 |
+++ b/dev-python/python-magic/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST python-magic-0.4.24.gh.tar.gz 863700 BLAKE2B 09ecc8bea1696343ec2462e6989da8059c40f88e401390c8c491e531540ef0b38e5a8eac1fb8a3356203e25cf2e5caa6dad0c13d24eb34a7a299b5a071ae29b3 SHA512 b3ec148da398293465299938fabf691b56c4b3876f6abbb7a734a9c0a5180cc758a15f7085bbf1bf40ec6031697ec84d98c161db1fd04301133af09928c611fc |
22 |
+DIST python-magic-0.4.25.gh.tar.gz 864127 BLAKE2B 84ec440ef1944c7fc23dcbe29156670e0feb48309150c9135fdb1898623fe687aed19c3e9e0ea14f38ef7a8ce070e61f495093056b70da83eda1f862e3957f21 SHA512 5fd8ad8b895e361cad19319d572676c3c7a2a00585fc2272442dc438cb7d272ba518177f15e7846030f692d4391fa4b3d49bc3b36902d195d37316b0feffc8aa |
23 |
|
24 |
diff --git a/dev-python/python-magic/python-magic-0.4.25.ebuild b/dev-python/python-magic/python-magic-0.4.25.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..4b94bfdc2e76 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/python-magic/python-magic-0.4.25.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..10} pypy3 ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Access the libmagic file type identification library" |
40 |
+HOMEPAGE="https://github.com/ahupp/python-magic" |
41 |
+SRC_URI=" |
42 |
+ https://github.com/ahupp/python-magic/archive/${PV}.tar.gz |
43 |
+ -> ${P}.gh.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD-2 MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
48 |
+IUSE="test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND="sys-apps/file[-python]" |
52 |
+BDEPEND=" |
53 |
+ test? ( sys-apps/file ) |
54 |
+" |
55 |
+ |
56 |
+python_test() { |
57 |
+ local -x LC_ALL=en_US.UTF-8 |
58 |
+ "${EPYTHON}" test/test.py -v || die "Tests fail with ${EPYTHON}" |
59 |
+} |