diff options
author | mirror@stealer.net <mirror@stealer.net> | 2025-01-31 23:30:19 +0000 |
---|---|---|
committer | mirror@stealer.net <mirror@stealer.net> | 2025-01-31 23:30:19 +0000 |
commit | 5c2c98b0a579c7434b70e2ee8f3c8a7499298dbb (patch) | |
tree | aa0268f668eb35627871a28d13ea8bf04d29d03d /dev-python/jsonpatch |
2025-01-31 23:11:16+00:00grafted
Diffstat (limited to 'dev-python/jsonpatch')
-rw-r--r-- | dev-python/jsonpatch/Manifest | 3 | ||||
-rw-r--r-- | dev-python/jsonpatch/jsonpatch-1.33.ebuild | 49 | ||||
-rw-r--r-- | dev-python/jsonpatch/metadata.xml | 21 |
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/jsonpatch/Manifest b/dev-python/jsonpatch/Manifest new file mode 100644 index 0000000000000..92d9c7ed0d35b --- /dev/null +++ b/dev-python/jsonpatch/Manifest @@ -0,0 +1,3 @@ +DIST python-json-patch-1.33.gh.tar.gz 28475 BLAKE2B 7d95ab23e09141cbe26618c91b12558d5fbfecda3e5b148d834753a364155d30859a9bdc3d321bdfcc5269f7e0170671524ae78f5fe65a8c97041bab3fb522b9 SHA512 0685f63949bee135b19d0962bdaab32ba97e02772b6650d885be57c09a2e89546222ebba1a4cf146b2f91027790b0a3ff2ea072d66dcebf9153aa601638bbfa2 +EBUILD jsonpatch-1.33.ebuild 1176 BLAKE2B 6b214487d5495fc84e211c520b4cc16cbf34bdd71e494dd27939f71a19b4c34cb32dc8e219e4510406aa4c33eddae4c87d984204e6015e292fd15c7129781606 SHA512 7ce2fce44b7f34c3bbc23212ff244974be1cc656a3be3cf60438ad79575b3ee22e7632b477450aec21e4e202d73e096f7fd04669eadf5325afbe4e74e4242b65 +MISC metadata.xml 705 BLAKE2B 4c59d56bf1f2eee88fd6a9284f13055ff97cc9c787ad3e03b983b8ba0c995fd34148e9a6ceb0f3f4cd1226aff0e60c6f7bc23e26e8da375d3527148ed49766ed SHA512 0323b39edf87ff697dc30deefd0568706e8318e54fb072902d5b60a31be65c39966d727f441f524715ce4c3a0958b9264d82ace03210c9550115a5b3fda2edac diff --git a/dev-python/jsonpatch/jsonpatch-1.33.ebuild b/dev-python/jsonpatch/jsonpatch-1.33.ebuild new file mode 100644 index 0000000000000..caf96ac2df30d --- /dev/null +++ b/dev-python/jsonpatch/jsonpatch-1.33.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 + +MY_P=python-json-patch-${PV} +DESCRIPTION="Apply JSON-Patches like http://tools.ietf.org/html/draft-pbryan-json-patch-04" +HOMEPAGE=" + https://github.com/stefankoegl/python-json-patch/ + https://pypi.org/project/jsonpatch/ +" +SRC_URI=" + https://github.com/stefankoegl/python-json-patch/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/jsonpointer-1.9[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + ) +" + +src_prepare() { + distutils-r1_src_prepare + + # https://github.com/stefankoegl/python-json-patch/pull/159 + sed -e 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/' \ + -i ext_tests.py tests.py +} + +python_test() { + "${EPYTHON}" tests.py || die "Tests of tests.py fail with ${EPYTHON}" + "${EPYTHON}" ext_tests.py || die "Tests of ext_tests.py fail with ${EPYTHON}" +} diff --git a/dev-python/jsonpatch/metadata.xml b/dev-python/jsonpatch/metadata.xml new file mode 100644 index 0000000000000..03477a84cd5e3 --- /dev/null +++ b/dev-python/jsonpatch/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + Python library to apply JSON Patches according to + http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-08 + </longdescription> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">jsonpatch</remote-id> + <remote-id type="github">stefankoegl/python-json-patch</remote-id> + </upstream> +</pkgmetadata> |