Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dissononce/files/, dev-python/dissononce/
Date: Fri, 02 Aug 2019 18:16:11
Message-Id: 1564769681.3447f783465da762b956c9261199dbc8d1eca193.juippis@gentoo
1 commit: 3447f783465da762b956c9261199dbc8d1eca193
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Fri Jul 26 21:14:26 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 2 18:14:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3447f783
7
8 dev-python/dissononce: New package
9
10 This is a new dependency for the >=net-im/yowsup-3 version bump.
11
12 Package-Manager: Portage-2.3.69, Repoman-2.3.16
13 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 dev-python/dissononce/Manifest | 1 +
17 dev-python/dissononce/dissononce-0.34.3.ebuild | 45 ++++++++++++++++++++++
18 .../dissononce-0.34.3-fix-test-requirements.patch | 32 +++++++++++++++
19 dev-python/dissononce/metadata.xml | 22 +++++++++++
20 4 files changed, 100 insertions(+)
21
22 diff --git a/dev-python/dissononce/Manifest b/dev-python/dissononce/Manifest
23 new file mode 100644
24 index 00000000000..2f18f353500
25 --- /dev/null
26 +++ b/dev-python/dissononce/Manifest
27 @@ -0,0 +1 @@
28 +DIST dissononce-0.34.3.tar.gz 594227 BLAKE2B e37ce7a41aa71f36a60b14b3da50df5c387aa64c472a48fe76d66f05ee495673b2719fb0ca0fab196992c4920eeba72701d47defceb70c2d85f5f894d13d40dd SHA512 f192c3f6abc3943fa8fffe959d3db74e810483c9f5868cc128a851ffc42069d084c0d935ca74fd45d5bcce3fe2cfeeb788094dc34f0567ed709ddfb57275fa18
29
30 diff --git a/dev-python/dissononce/dissononce-0.34.3.ebuild b/dev-python/dissononce/dissononce-0.34.3.ebuild
31 new file mode 100644
32 index 00000000000..c5583d3590b
33 --- /dev/null
34 +++ b/dev-python/dissononce/dissononce-0.34.3.ebuild
35 @@ -0,0 +1,45 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
42 +
43 +inherit distutils-r1
44 +
45 +DESCRIPTION="A python implementation for Noise Protocol Framework"
46 +HOMEPAGE="https://github.com/tgalal/dissononce"
47 +SRC_URI="https://github.com/tgalal/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="examples test"
53 +
54 +# Currently no tests are available,
55 +# they will be added in future by upstream.
56 +RESTRICT="test"
57 +
58 +RDEPEND="
59 + dev-python/cryptography[${PYTHON_USEDEP}]
60 + dev-python/transitions[${PYTHON_USEDEP}]
61 +"
62 +
63 +DEPEND="
64 + ${RDEPEND}
65 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
66 +"
67 +
68 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
69 +
70 +PATCHES=( "${FILESDIR}/${P}-fix-test-requirements.patch" )
71 +
72 +python_test() {
73 + esetup.py test
74 +}
75 +
76 +src_install() {
77 + distutils-r1_src_install
78 +
79 + use examples && dodoc examples/patterns/*.py
80 +}
81
82 diff --git a/dev-python/dissononce/files/dissononce-0.34.3-fix-test-requirements.patch b/dev-python/dissononce/files/dissononce-0.34.3-fix-test-requirements.patch
83 new file mode 100644
84 index 00000000000..037706f4866
85 --- /dev/null
86 +++ b/dev-python/dissononce/files/dissononce-0.34.3-fix-test-requirements.patch
87 @@ -0,0 +1,32 @@
88 +From 4fad01ef1689380b6de685aef5e85ebb1696cce5 Mon Sep 17 00:00:00 2001
89 +From: Conrad Kostecki <conrad@××××××××.com>
90 +Date: Sun, 2 Jun 2019 01:19:16 +0200
91 +Subject: [PATCH] setup.py: fix test requirements
92 +
93 +/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
94 +Package installs 'tests' package which is forbidden and likely a bug in the build system.
95 +
96 +Signed-off-by: Conrad Kostecki <conrad@××××××××.com>
97 +---
98 + setup.py | 4 ++--
99 + 1 file changed, 2 insertions(+), 2 deletions(-)
100 +
101 +diff --git a/setup.py b/setup.py
102 +index 77cd54b..4d4423f 100644
103 +--- a/setup.py
104 ++++ b/setup.py
105 +@@ -5,12 +5,12 @@
106 + setup(
107 + name='dissononce',
108 + version=dissononce.__version__,
109 +- packages=find_packages(exclude=['tests', 'examples']),
110 ++ packages=find_packages(exclude=['tests*', 'examples']),
111 + install_requires=['cryptography>=2.5'],
112 + extras_require={
113 + 'GuardedHandshakeState': ['transitions']
114 + },
115 +- test_requires=['pytest'],
116 ++ tests_require=['pytest'],
117 + license='MIT',
118 + author='Tarek Galal',
119 + author_email='tare2.galal@×××××.com',
120
121 diff --git a/dev-python/dissononce/metadata.xml b/dev-python/dissononce/metadata.xml
122 new file mode 100644
123 index 00000000000..e93d01b1546
124 --- /dev/null
125 +++ b/dev-python/dissononce/metadata.xml
126 @@ -0,0 +1,22 @@
127 +<?xml version="1.0" encoding="UTF-8"?>
128 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
129 +<pkgmetadata>
130 + <maintainer type="person">
131 + <email>ck+gentoo@××××××××.de</email>
132 + <name>Conrad Kostecki</name>
133 + </maintainer>
134 + <maintainer type="project">
135 + <email>proxy-maint@g.o</email>
136 + <name>Proxy Maintainers</name>
137 + </maintainer>
138 + <longdescription>
139 + Dissononce is a python implementation for Noise Protocol Framework.
140 + A main goal of this project is to provide a simple,
141 + easy to read and understand practical reference for Noise enthusiasts,
142 + implementers and users.
143 + </longdescription>
144 + <upstream>
145 + <bugs-to>https://github.com/tgalal/dissononce/issues</bugs-to>
146 + <remote-id type="github">tgalal/dissononce</remote-id>
147 + </upstream>
148 +</pkgmetadata>