diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2019-07-26 23:14:26 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-08-02 21:14:41 +0300 |
commit | 3447f783465da762b956c9261199dbc8d1eca193 (patch) | |
tree | 31405e1c884d73578c1eadb66e1a0ee6db0cd328 /dev-python | |
parent | dev-python/consonance: New package (diff) | |
download | gentoo-3447f783465da762b956c9261199dbc8d1eca193.tar.gz gentoo-3447f783465da762b956c9261199dbc8d1eca193.tar.bz2 gentoo-3447f783465da762b956c9261199dbc8d1eca193.zip |
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@kostecki.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/dissononce/Manifest | 1 | ||||
-rw-r--r-- | dev-python/dissononce/dissononce-0.34.3.ebuild | 45 | ||||
-rw-r--r-- | dev-python/dissononce/files/dissononce-0.34.3-fix-test-requirements.patch | 32 | ||||
-rw-r--r-- | dev-python/dissononce/metadata.xml | 22 |
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/dissononce/Manifest b/dev-python/dissononce/Manifest new file mode 100644 index 000000000000..2f18f3535002 --- /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 000000000000..c5583d3590b2 --- /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 000000000000..037706f4866d --- /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 000000000000..e93d01b15460 --- /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> |