* [gentoo-commits] repo/gentoo:master commit in: dev-python/dissononce/files/, dev-python/dissononce/
@ 2019-08-02 18:16 Joonas Niilola
0 siblings, 0 replies; only message in thread
From: Joonas Niilola @ 2019-08-02 18:16 UTC (permalink / raw
To: gentoo-commits
commit: 3447f783465da762b956c9261199dbc8d1eca193
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Fri Jul 26 21:14:26 2019 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Aug 2 18:14:41 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3447f783
dev-python/dissononce: New package
This is a new dependency for the >=net-im/yowsup-3 version bump.
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
dev-python/dissononce/Manifest | 1 +
dev-python/dissononce/dissononce-0.34.3.ebuild | 45 ++++++++++++++++++++++
.../dissononce-0.34.3-fix-test-requirements.patch | 32 +++++++++++++++
dev-python/dissononce/metadata.xml | 22 +++++++++++
4 files changed, 100 insertions(+)
diff --git a/dev-python/dissononce/Manifest b/dev-python/dissononce/Manifest
new file mode 100644
index 00000000000..2f18f353500
--- /dev/null
+++ b/dev-python/dissononce/Manifest
@@ -0,0 +1 @@
+DIST dissononce-0.34.3.tar.gz 594227 BLAKE2B e37ce7a41aa71f36a60b14b3da50df5c387aa64c472a48fe76d66f05ee495673b2719fb0ca0fab196992c4920eeba72701d47defceb70c2d85f5f894d13d40dd SHA512 f192c3f6abc3943fa8fffe959d3db74e810483c9f5868cc128a851ffc42069d084c0d935ca74fd45d5bcce3fe2cfeeb788094dc34f0567ed709ddfb57275fa18
diff --git a/dev-python/dissononce/dissononce-0.34.3.ebuild b/dev-python/dissononce/dissononce-0.34.3.ebuild
new file mode 100644
index 00000000000..c5583d3590b
--- /dev/null
+++ b/dev-python/dissononce/dissononce-0.34.3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+
+inherit distutils-r1
+
+DESCRIPTION="A python implementation for Noise Protocol Framework"
+HOMEPAGE="https://github.com/tgalal/dissononce"
+SRC_URI="https://github.com/tgalal/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples test"
+
+# Currently no tests are available,
+# they will be added in future by upstream.
+RESTRICT="test"
+
+RDEPEND="
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/transitions[${PYTHON_USEDEP}]
+"
+
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )
+"
+
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}/${P}-fix-test-requirements.patch" )
+
+python_test() {
+ esetup.py test
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ use examples && dodoc examples/patterns/*.py
+}
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
new file mode 100644
index 00000000000..037706f4866
--- /dev/null
+++ b/dev-python/dissononce/files/dissononce-0.34.3-fix-test-requirements.patch
@@ -0,0 +1,32 @@
+From 4fad01ef1689380b6de685aef5e85ebb1696cce5 Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <conrad@kostecki.com>
+Date: Sun, 2 Jun 2019 01:19:16 +0200
+Subject: [PATCH] setup.py: fix test requirements
+
+/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requires'
+Package installs 'tests' package which is forbidden and likely a bug in the build system.
+
+Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
+---
+ setup.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 77cd54b..4d4423f 100644
+--- a/setup.py
++++ b/setup.py
+@@ -5,12 +5,12 @@
+ setup(
+ name='dissononce',
+ version=dissononce.__version__,
+- packages=find_packages(exclude=['tests', 'examples']),
++ packages=find_packages(exclude=['tests*', 'examples']),
+ install_requires=['cryptography>=2.5'],
+ extras_require={
+ 'GuardedHandshakeState': ['transitions']
+ },
+- test_requires=['pytest'],
++ tests_require=['pytest'],
+ license='MIT',
+ author='Tarek Galal',
+ author_email='tare2.galal@gmail.com',
diff --git a/dev-python/dissononce/metadata.xml b/dev-python/dissononce/metadata.xml
new file mode 100644
index 00000000000..e93d01b1546
--- /dev/null
+++ b/dev-python/dissononce/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Dissononce is a python implementation for Noise Protocol Framework.
+ A main goal of this project is to provide a simple,
+ easy to read and understand practical reference for Noise enthusiasts,
+ implementers and users.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/tgalal/dissononce/issues</bugs-to>
+ <remote-id type="github">tgalal/dissononce</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-02 18:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-02 18:16 [gentoo-commits] repo/gentoo:master commit in: dev-python/dissononce/files/, dev-python/dissononce/ Joonas Niilola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox