1 |
commit: c7a4cadda068185864ad2ad98db619bcb362993f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 20 22:18:01 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 20 23:15:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a4cadd |
7 |
|
8 |
dev-python/psutil: add 5.9.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-python/psutil/Manifest | 2 ++ |
13 |
dev-python/psutil/psutil-5.9.1.ebuild | 41 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 43 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/psutil/Manifest b/dev-python/psutil/Manifest |
17 |
index 558b4186bfca..06022c933547 100644 |
18 |
--- a/dev-python/psutil/Manifest |
19 |
+++ b/dev-python/psutil/Manifest |
20 |
@@ -1 +1,3 @@ |
21 |
DIST psutil-5.9.0.tar.gz 478322 BLAKE2B 763c8ae14ae546bed64a360047d2ce38783e9e7e939160f751c4ccc94b8e023aaa4cdca426f584e05dae8b1326333660e216d7cb3edd820e24a931dddfa5160f SHA512 b521cfce51e90fdf87ba19bf8069877e3210aede92c17460ea0b00324a36e133168e4bff550462d07ab6d93c597c6560d68954340031ff43168d54a8e5d4c4e7 |
22 |
+DIST psutil-5.9.1-tests.patch.xz 3144 BLAKE2B 8980505d76265fbe20556fcec491096fd5e74031a2f1a4bff841837efda93ee240efe23772ffdea526513544ba5c56f37e72be5448759e817c3dc5f4b1abd4c5 SHA512 a0ebbcba6f99293df9c2222b73e994abe1cbb423e707b15f9bcde13a0026a19e023166c830a3d017905385efb838ad892ffbc1b994df99ce54fa03a20e649f41 |
23 |
+DIST psutil-5.9.1.tar.gz 479090 BLAKE2B 88f35a9134d942fa56b5fbc79753e82245c3bfdb1f640dbf3b56815b89d872517f9ee3a3945532ebd1a399c3307e160ac80394766c3b2cc7e3fb36ffdd555eef SHA512 1ddb119a10243d17d808417817ec8659d22447f12a4bbc0366c13f6587a4b0b59f4e74f6ac5d1e1a908bb5fd287be630466d32beabcb5008f6a19c24a1557c27 |
24 |
|
25 |
diff --git a/dev-python/psutil/psutil-5.9.1.ebuild b/dev-python/psutil/psutil-5.9.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..8e9641dbd86a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/psutil/psutil-5.9.1.ebuild |
30 |
@@ -0,0 +1,41 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Retrieve information on running processes and system utilization" |
42 |
+HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+SRC_URI+=" test? ( https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-5.9.1-tests.patch.xz )" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
+IUSE="test" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+PATCHES=( |
53 |
+ "${WORKDIR}"/${PN}-5.9.1-tests.patch |
54 |
+) |
55 |
+ |
56 |
+python_test() { |
57 |
+ # Since we are running in an environment a bit similar to CI, |
58 |
+ # let's skip the tests that are disabled for CI |
59 |
+ local -x TRAVIS=1 |
60 |
+ local -x APPVEYOR=1 |
61 |
+ local -x GITHUB_ACTIONS=1 |
62 |
+ local -x GENTOO_TESTING=1 |
63 |
+ "${EPYTHON}" psutil/tests/runner.py || |
64 |
+ die "tests failed with ${EPYTHON}" |
65 |
+} |
66 |
+ |
67 |
+python_compile() { |
68 |
+ # Force -j1 to avoid .o linking race conditions |
69 |
+ local MAKEOPTS=-j1 |
70 |
+ distutils-r1_python_compile |
71 |
+} |