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>
This commit is contained in:
Conrad Kostecki
2019-07-26 23:14:26 +02:00
committed by Joonas Niilola
parent 58ed1ade0c
commit 3447f78346
4 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST dissononce-0.34.3.tar.gz 594227 BLAKE2B e37ce7a41aa71f36a60b14b3da50df5c387aa64c472a48fe76d66f05ee495673b2719fb0ca0fab196992c4920eeba72701d47defceb70c2d85f5f894d13d40dd SHA512 f192c3f6abc3943fa8fffe959d3db74e810483c9f5868cc128a851ffc42069d084c0d935ca74fd45d5bcce3fe2cfeeb788094dc34f0567ed709ddfb57275fa18

View File

@@ -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
}

View File

@@ -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',

View File

@@ -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>