1 |
commit: c3400aa9f9b8295a5b2fcd95952b66d6fcd93c94 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 13 15:01:56 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 16:10:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3400aa9 |
7 |
|
8 |
dev-python/sniffio: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/sniffio/sniffio-1.2.0-r1.ebuild | 30 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 30 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/sniffio/sniffio-1.2.0-r1.ebuild b/dev-python/sniffio/sniffio-1.2.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..08c92e236b7e |
18 |
--- /dev/null |
19 |
+++ b/dev-python/sniffio/sniffio-1.2.0-r1.ebuild |
20 |
@@ -0,0 +1,30 @@ |
21 |
+# Copyright 2021-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Sniff out which async library your code is running under" |
32 |
+HOMEPAGE=" |
33 |
+ https://github.com/python-trio/sniffio/ |
34 |
+ https://pypi.org/project/sniffio/ |
35 |
+" |
36 |
+SRC_URI=" |
37 |
+ https://github.com/python-trio/sniffio/archive/v${PV}.tar.gz |
38 |
+ -> ${P}.gh.tar.gz |
39 |
+" |
40 |
+ |
41 |
+LICENSE="|| ( Apache-2.0 MIT )" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
44 |
+ |
45 |
+distutils_enable_tests pytest |
46 |
+ |
47 |
+EPYTEST_DESELECT=( |
48 |
+ # curio is not packaged |
49 |
+ sniffio/_tests/test_sniffio.py::test_curio |
50 |
+) |