Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jsondiff/
Date: Tue, 25 Jun 2019 01:35:50
Message-Id: 1561426421.6a74863a18d198c21f898be378379ca8675e5e96.zmedico@gentoo
1 commit: 6a74863a18d198c21f898be378379ca8675e5e96
2 Author: Zac Medico <zachary.medico <AT> sony <DOT> com>
3 AuthorDate: Wed Jun 19 03:32:15 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 25 01:33:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a74863a
7
8 dev-python/jsondiff: New package
9
10 Bug: https://bugs.gentoo.org/688034
11 Copyright: Sony Interactive Entertainment Inc.
12 Package-Manager: Portage-2.3.67, Repoman-2.3.14
13 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
14
15 dev-python/jsondiff/Manifest | 1 +
16 dev-python/jsondiff/jsondiff-1.1.2.ebuild | 33 +++++++++++++++++++++++++++++++
17 dev-python/jsondiff/metadata.xml | 13 ++++++++++++
18 3 files changed, 47 insertions(+)
19
20 diff --git a/dev-python/jsondiff/Manifest b/dev-python/jsondiff/Manifest
21 new file mode 100644
22 index 00000000000..ec5b32ac77e
23 --- /dev/null
24 +++ b/dev-python/jsondiff/Manifest
25 @@ -0,0 +1 @@
26 +DIST jsondiff-1.1.2.tar.gz 7803 BLAKE2B cbfcfdb2c6c3bb721b4db43aca1d66649257db2cd9feb9655015e621fcd90c72af087696b9553a10ac89cdaf5f23d8748463e1a13bdb19207e34e12e66629544 SHA512 ca96bb80a6f7a34c8c5bcde74856dc1c4935b3e2979330ecfc33432aff83968e671b2aaf310c77f2c7d431be1ae6e20a960879700ba3c903a09a48b23d4c0288
27
28 diff --git a/dev-python/jsondiff/jsondiff-1.1.2.ebuild b/dev-python/jsondiff/jsondiff-1.1.2.ebuild
29 new file mode 100644
30 index 00000000000..4f246f93099
31 --- /dev/null
32 +++ b/dev-python/jsondiff/jsondiff-1.1.2.ebuild
33 @@ -0,0 +1,33 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Diff JSON and JSON-like structures in Python"
43 +HOMEPAGE="https://github.com/xlwings/jsondiff https://pypi.org/project/jsondiff/"
44 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE=""
50 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
51 +# tests require nose_random
52 +RESTRICT="test"
53 +
54 +python_prepare_all() {
55 + # Avoid file collision with jsonpatch's jsondiff cli.
56 + sed -e "/'jsondiff=jsondiff.cli:main'/d" -i setup.py || die
57 + distutils-r1_python_prepare_all
58 +}
59 +
60 +python_test() {
61 + esetup.py test || die "tests failed with ${EPYTHON}"
62 +}
63 +
64 +python_install_all() {
65 + distutils-r1_python_install_all
66 +}
67
68 diff --git a/dev-python/jsondiff/metadata.xml b/dev-python/jsondiff/metadata.xml
69 new file mode 100644
70 index 00000000000..ff1d5858ae3
71 --- /dev/null
72 +++ b/dev-python/jsondiff/metadata.xml
73 @@ -0,0 +1,13 @@
74 +<?xml version="1.0" encoding="UTF-8"?>
75 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
76 +<pkgmetadata>
77 + <maintainer type="person">
78 + <email>zmedico@g.o</email>
79 + <name>Zac Medico</name>
80 + </maintainer>
81 + <upstream>
82 + <remote-id type="github">xlwings/jsondiff</remote-id>
83 + <remote-id type="pypi">jsondiff</remote-id>
84 + <bugs-to>https://github.com/xlwings/jsondiff/issues</bugs-to>
85 + </upstream>
86 +</pkgmetadata>