summaryrefslogtreecommitdiff
path: root/dev-python/yappi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-05-14 11:09:11 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-05-14 11:09:11 +0100
commitdeba8115d2c2af26df42966b91ef04ff4dd79cde (patch)
tree9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-python/yappi
parent38423c67c8a23f6a1bc42038193182e2da3116eb (diff)
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-python/yappi')
-rw-r--r--dev-python/yappi/Manifest5
-rw-r--r--dev-python/yappi/files/yappi-1.2.5-warnings.patch13
-rw-r--r--dev-python/yappi/metadata.xml2
-rw-r--r--dev-python/yappi/yappi-1.2.5.ebuild38
4 files changed, 56 insertions, 2 deletions
diff --git a/dev-python/yappi/Manifest b/dev-python/yappi/Manifest
index 2eb5a5d65586..b77882c20afd 100644
--- a/dev-python/yappi/Manifest
+++ b/dev-python/yappi/Manifest
@@ -1,3 +1,6 @@
+AUX yappi-1.2.5-warnings.patch 483 BLAKE2B e084ebde1a6769ace82ed1d1b878f656ffd283678acf474af866f26951231a823a930323c1d7fbdb06c01b4b06b98522ba1bfb427973261627cb9967949d8b8a SHA512 81dde3661720814ca89fb3cd20786601ae7a5362a288c7f9ebbafd4095006b863dfa3c544821b917d9abb8a2532b08d415440a21f19e14e3a67c517064f1ab61
DIST yappi-1.0.tar.gz 38939 BLAKE2B b07b38bc07ffb6ba7aea3728ba6977680ca7f2dcc499778110aa31e733c512e5704cd580d01faf3344849df6772f110472a01328447228e9c45180beefc36f3e SHA512 d743c471ee3797b9f3b24c831fcb4ddf2cec7c13c56e567c0618eeada9a534ca0b114929da623a2c67142c61f3c38b024b25ba5e32883113148f4377f7574905
+DIST yappi-1.2.5.tar.gz 928100 BLAKE2B 1d303226821d53fb215ac29f8363d9f564f9f40096b5ba8f67475c4074012316f523afb6d770cff879038cd333ef7f050b29c015e2dd2e517859f66a0e1f36f3 SHA512 ec784e76b56e8bc0c3cfe07c90d0810fa90d5a7da62f36187e8a09a9d6e01f3c2d74320de3dd3f4bf1d4a9425fee319c7a575a9d35ad5412c1501c934f1ba353
EBUILD yappi-1.0.ebuild 547 BLAKE2B 7fa3320e99330cc4ff7066bae77435359576e14a428fedc22915904fcb14c82e72a445223456c8502c46fa140b9f32f51d8869d1128c94886b543f4993913cc0 SHA512 6c12e42115de68d28c74c09901983f59196cdd3b8267dbac446ea186d995630806bb37d38115d84df6325ef6d567858798b119d5dc038e17af965829f90465af
-MISC metadata.xml 491 BLAKE2B bd3b3283c39af67f7a1f55891d3168bf6bc054052007bec6303016d3f6b513cd20f94c83f427cd849b951102085b390e69dd4ac2d2d44a6b31bb5f1ff3f10af1 SHA512 d058a5d7d593e801967cbd8764ce0e55480580995a68cd3d35802932249fa015267052895d360fc13cda379333d1cf8222e02f486e68477afe1e2af1168731fc
+EBUILD yappi-1.2.5.ebuild 941 BLAKE2B 67201bddbfa460cc18d7d3866672d3096cf0a25d2451ae0e01e7c507ea1b72394a514db1a8c6f715587f938965c7a4316929c7e7fe68b86457ba75b48928e390 SHA512 45f93d3753a741ba1691115992ef8e66f79e53921a84c2b3c2af57a3c11e691d12da8a22f5bc1303a00c4d30c66a3acaf51179fba6e0e5026999439dd541e4d8
+MISC metadata.xml 488 BLAKE2B 2ac7151d74622eb9e76ce39ef336aa6c729b4249e781747916936fc88e0aac76d54626b8383c58cdb6661ef080b3ee37c8bab7eb00a4befac7b0523f5552afc2 SHA512 a85e098364030d565901db988e7848181b51db19d17eef2a97ab40ab4e318ccf03e2a72201ebe28ca56965c2327ebdf9e01f5230be9a46d4d273a08cb8473af3
diff --git a/dev-python/yappi/files/yappi-1.2.5-warnings.patch b/dev-python/yappi/files/yappi-1.2.5-warnings.patch
new file mode 100644
index 000000000000..1594c33ee3d2
--- /dev/null
+++ b/dev-python/yappi/files/yappi-1.2.5-warnings.patch
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index cd9a549..440043c 100644
+--- a/setup.py
++++ b/setup.py
+@@ -23,7 +23,7 @@ link_args = []
+
+ if os.name == 'posix' and sys.platform != 'darwin':
+ compiler = new_compiler()
+- if compiler.has_function('timer_create', libraries=('rt', )):
++ if compiler.has_function('timer_create', libraries=('rt', ), includes=["signal.h", "time.h"]):
+ user_macros.append(('LIB_RT_AVAILABLE', '1'))
+ user_libraries.append('rt')
+ if _DEBUG:
diff --git a/dev-python/yappi/metadata.xml b/dev-python/yappi/metadata.xml
index fc71beddc903..5f26dbbd3027 100644
--- a/dev-python/yappi/metadata.xml
+++ b/dev-python/yappi/metadata.xml
@@ -11,6 +11,6 @@
</maintainer>
<upstream>
<remote-id type="pypi">yappi</remote-id>
- <remote-id type="bitbucket">sumerc/yappi</remote-id>
+ <remote-id type="github">sumerc/yappi</remote-id>
</upstream>
</pkgmetadata>
diff --git a/dev-python/yappi/yappi-1.2.5.ebuild b/dev-python/yappi/yappi-1.2.5.ebuild
new file mode 100644
index 000000000000..73dc4bffcff5
--- /dev/null
+++ b/dev-python/yappi/yappi-1.2.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=(python3_{6,7,8})
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit distutils-r1
+
+# no tags on github, no tests on pypi
+COMMIT_HASH="b6c7d9f0bb40b511f61bb82cc395ad9140a4f4b0"
+
+DESCRIPTION="Yet Another Python Profiler"
+HOMEPAGE="https://pypi.org/project/yappi/ https://github.com/sumerc/yappi"
+SRC_URI="https://github.com/sumerc/yappi/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT_HASH}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+ dev-python/contextvars[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+ "${FILESDIR}/yappi-1.2.5-warnings.patch"
+)
+
+python_prepare_all() {
+ cp tests/utils.py "${S}" || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ distutils_install_for_testing
+ PATH="${TEST_DIR}/scripts:${PATH}" \
+ "${EPYTHON}" run_tests.py || die "tests fail with ${EPYTHON}"
+}