1 |
commit: 1e3fe61be090fe5a8e69a4bd3544f012ec975a2f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 31 19:10:05 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 31 19:10:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e3fe61b |
7 |
|
8 |
dev-python/sniffio: New package, indirect dep of denonavr |
9 |
|
10 |
A new package to detect asyncio library used, required by httpx |
11 |
that in turn is a dependency of dev-python/denonavr. Not really |
12 |
meaningful for Gentoo right now since we do not package any alternate |
13 |
asyncio implementations. |
14 |
|
15 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
16 |
|
17 |
dev-python/sniffio/Manifest | 1 + |
18 |
dev-python/sniffio/metadata.xml | 12 ++++++++++++ |
19 |
dev-python/sniffio/sniffio-1.2.0.ebuild | 31 +++++++++++++++++++++++++++++++ |
20 |
3 files changed, 44 insertions(+) |
21 |
|
22 |
diff --git a/dev-python/sniffio/Manifest b/dev-python/sniffio/Manifest |
23 |
new file mode 100644 |
24 |
index 00000000000..d096430d8bf |
25 |
--- /dev/null |
26 |
+++ b/dev-python/sniffio/Manifest |
27 |
@@ -0,0 +1 @@ |
28 |
+DIST sniffio-1.2.0.gh.tar.gz 17335 BLAKE2B 0d67baa18702ac38932680bdc741c87ee0a31342cc752c1463a7f90720ea0ebf6d62ef682a042c58e8fe96456e1461638e0f02c6f60da5f5e0d07464be27a4a3 SHA512 8e1dd2bb6fc22ee5824adfffe688ff0621b8c1ef5daea594dedce13d5e04a498e05816bb32e9bbed206a653a330ff710df57c888ddcff00a6254eafddc538273 |
29 |
|
30 |
diff --git a/dev-python/sniffio/metadata.xml b/dev-python/sniffio/metadata.xml |
31 |
new file mode 100644 |
32 |
index 00000000000..0c53f9f9d1e |
33 |
--- /dev/null |
34 |
+++ b/dev-python/sniffio/metadata.xml |
35 |
@@ -0,0 +1,12 @@ |
36 |
+<?xml version="1.0" encoding="UTF-8"?> |
37 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
38 |
+<pkgmetadata> |
39 |
+ <maintainer type="project"> |
40 |
+ <email>python@g.o</email> |
41 |
+ </maintainer> |
42 |
+ <stabilize-allarches/> |
43 |
+ <upstream> |
44 |
+ <remote-id type="github">python-trio/sniffio</remote-id> |
45 |
+ <remote-id type="pypi">sniffio</remote-id> |
46 |
+ </upstream> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/dev-python/sniffio/sniffio-1.2.0.ebuild b/dev-python/sniffio/sniffio-1.2.0.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..fb884d90810 |
52 |
--- /dev/null |
53 |
+++ b/dev-python/sniffio/sniffio-1.2.0.ebuild |
54 |
@@ -0,0 +1,31 @@ |
55 |
+# Copyright 2021 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=7 |
59 |
+ |
60 |
+PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+DESCRIPTION="Sniff out which async library your code is running under" |
64 |
+HOMEPAGE=" |
65 |
+ https://github.com/python-trio/sniffio/ |
66 |
+ https://pypi.org/project/sniffio/" |
67 |
+SRC_URI=" |
68 |
+ https://github.com/python-trio/sniffio/archive/v${PV}.tar.gz |
69 |
+ -> ${P}.gh.tar.gz" |
70 |
+ |
71 |
+LICENSE="|| ( Apache-2.0 MIT )" |
72 |
+SLOT="0" |
73 |
+KEYWORDS="~amd64 ~x86" |
74 |
+ |
75 |
+distutils_enable_tests pytest |
76 |
+ |
77 |
+python_test() { |
78 |
+ local deselect=( |
79 |
+ # curio is not packaged |
80 |
+ sniffio/_tests/test_sniffio.py::test_curio |
81 |
+ ) |
82 |
+ |
83 |
+ pytest -vv ${deselect[@]/#/--deselect } || |
84 |
+ die "Tests failed with ${EPYTHON}" |
85 |
+} |