summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-04-13 14:33:28 +0200
committerMichał Górny <mgorny@gentoo.org>2017-04-13 14:45:35 +0200
commit44765ce71aca44b4a41d57fc94b7fa08d8313550 (patch)
tree599e3b463d4042286ba930c17e652eacf22699d3
parentlicenses: Update CAOSL using fresh copy from the jxplorer GitHub repo (diff)
downloadgentoo-44765ce71aca44b4a41d57fc94b7fa08d8313550.tar.gz
gentoo-44765ce71aca44b4a41d57fc94b7fa08d8313550.tar.bz2
gentoo-44765ce71aca44b4a41d57fc94b7fa08d8313550.zip
dev-python/pygcrypt: New package, Python bindings for libgcrypt
-rw-r--r--dev-python/pygcrypt/Manifest1
-rw-r--r--dev-python/pygcrypt/metadata.xml11
-rw-r--r--dev-python/pygcrypt/pygcrypt-1.0.0.ebuild26
3 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/pygcrypt/Manifest b/dev-python/pygcrypt/Manifest
new file mode 100644
index 000000000000..895cf2414cba
--- /dev/null
+++ b/dev-python/pygcrypt/Manifest
@@ -0,0 +1 @@
+DIST pygcrypt-1.0.0.tar.gz 53619 SHA256 9d30a1a0385a71edc7e9af8c3c43c5f252e352538d2c74d521bb6440cd1caad4 SHA512 db0854dcb4bfbdb55674fe83a501eac8ac40c624722972c44c401605820de45f1353cf9b6368ef880a6b3a6f112c4faeccf18246cdc82e88dac797d150f06de3 WHIRLPOOL 560292836bb80ed9525b0fe3903e6dbc4d626a53323fe81a06d274401833bf1f324bd7b181e5011f0a0fd05fe9b28300a6c448008573a16a103e4dd68960f90b
diff --git a/dev-python/pygcrypt/metadata.xml b/dev-python/pygcrypt/metadata.xml
new file mode 100644
index 000000000000..22e0d6d87f61
--- /dev/null
+++ b/dev-python/pygcrypt/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pygcrypt/pygcrypt-1.0.0.ebuild b/dev-python/pygcrypt/pygcrypt-1.0.0.ebuild
new file mode 100644
index 000000000000..1dfdb7d44672
--- /dev/null
+++ b/dev-python/pygcrypt/pygcrypt-1.0.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{3_5,3_6} )
+inherit distutils-r1
+
+DESCRIPTION="CFFI interface to dev-libs/libgcrypt"
+HOMEPAGE="https://framagit.org/okhin/pygcrypt/"
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-libs/libgcrypt:0=
+ virtual/python-cffi[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_test() {
+ py.test -v || die "Tests failed against ${EPYTHON}"
+}