diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-14 04:04:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-14 04:04:03 +0100 |
commit | 2916cf6049cf9d3092021e247d56c580df6029a7 (patch) | |
tree | c796a6fc8b6fd0e4fd5ac06b009000b438fed7d9 /dev-python/simple-websocket | |
parent | 7b5306e0d287565138e8b051e32f57e6af6ae0ed (diff) |
gentoo auto-resync : 14:10:2024 - 04:04:03
Diffstat (limited to 'dev-python/simple-websocket')
-rw-r--r-- | dev-python/simple-websocket/Manifest | 2 | ||||
-rw-r--r-- | dev-python/simple-websocket/simple-websocket-1.1.0.ebuild | 39 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/simple-websocket/Manifest b/dev-python/simple-websocket/Manifest index a027f1bc02a8..3a7bdc24373a 100644 --- a/dev-python/simple-websocket/Manifest +++ b/dev-python/simple-websocket/Manifest @@ -1,3 +1,5 @@ DIST simple-websocket-1.0.0.gh.tar.gz 19082 BLAKE2B d1ac2d0838e22de023f44e1a12780166b00a0dc39707e8953c8783c98f2fc4fc1ad5701401117cc45b7596d95acbb734fae82a27e50be48f684ad2caeafd428f SHA512 63ccc19fe09f675e098f33d32659d1314b573893014bc203abb285c3ff6c04916fd6b592bcf50cc9d65d40d4ebe739e686ac53257ff8407de60312d6e21ca1b5 +DIST simple-websocket-1.1.0.gh.tar.gz 19589 BLAKE2B 293fa26af7ea929b4b2acdfe8e63598ac171a6b628f6a72aa1694c880b3db48b20fc7b76854e17cf1896e29a95982fba54c47a6baad3589ffa85d1fe93d6be6f SHA512 89c2c580902af77e8708bf2ae5c40358f3f9fe3052ee58d42bc518a68042c8b0bda1ad0cf3e304b67189590e75ee1bfe085d12f9d18755c443731c0884b1cb92 EBUILD simple-websocket-1.0.0.ebuild 737 BLAKE2B e7a883e894bc70cfe641c81928967a797240fd8148a394da42d39572d431d3f6ec1c42f0435a23b749bc243ecf1d6c4688625c063270aedc695fb6fb4ef2a90c SHA512 d227e9b00c22e06b0018b1d9bc3d9f757097cc24a555cce7c30617eb713a3ffae0658cd455eb84bc53bc3525c586307459de326b2fc6cf25414e8ffac5ee643d +EBUILD simple-websocket-1.1.0.ebuild 982 BLAKE2B 15a482f06c6783ed5653d326176d8de50deef9041280f31f7f1b3afa7eeb41865d2e39d05279874bc3c80b0157cc8893cf20b688006eabe4df59c8bff053d895 SHA512 5b66c463190e684ece15409d96b8e701ec88b8b6e06cd8e0efe39bba4f0b5b32ab51dcd6bca02dc870e7011cc962f929e3d9053daebb58c6251206c64896bc25 MISC metadata.xml 393 BLAKE2B 09d0aa4a7a7564fd93b50194d1fe7d294f81586322d290714739b302403732bdc4ed47a6ea6d7acfba00a64422e5243db54adad7497e1d8cbdafb7ce117334fa SHA512 f679c191c92a0fe2e7a2f39c5ec35710504c97fc9f9ece12d83a7aab74f59918c3d28775dec256594e32170b27a8b0a1fe996bd00f30d607e5347f985e9b59f1 diff --git a/dev-python/simple-websocket/simple-websocket-1.1.0.ebuild b/dev-python/simple-websocket/simple-websocket-1.1.0.ebuild new file mode 100644 index 000000000000..59c05adf08c2 --- /dev/null +++ b/dev-python/simple-websocket/simple-websocket-1.1.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="Simple WebSocket server and client for Python" +HOMEPAGE=" + https://github.com/miguelgrinberg/simple-websocket/ + https://pypi.org/project/simple-websocket/ +" +# upstream refuses to provide working tests in sdist +# https://github.com/miguelgrinberg/simple-websocket/issues/31 +SRC_URI=" + https://github.com/miguelgrinberg/simple-websocket/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/wsproto[${PYTHON_USEDEP}] +" + +src_prepare() { + distutils-r1_src_prepare + + # fix tests to work offline + # https://github.com/miguelgrinberg/simple-websocket/commit/159e030c7c23060de989cebec6d98d776c75bcbd + sed -i -e 's:example\.com:localhost:g' tests/test_client.py || die +} + +distutils_enable_tests pytest |