summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-23 18:27:21 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-23 18:39:38 +0200
commitd514813313f6d7946a65ebb7bc55bc676aadd1d9 (patch)
tree37c8a69f8a31730efa0c4362cec97babe1d437b2 /dev-python/keyrings-alt
parentdev-python/fs: Enable pypy3 (diff)
downloadgentoo-d514813313f6d7946a65ebb7bc55bc676aadd1d9.tar.gz
gentoo-d514813313f6d7946a65ebb7bc55bc676aadd1d9.tar.bz2
gentoo-d514813313f6d7946a65ebb7bc55bc676aadd1d9.zip
dev-python/keyrings-alt: New package, v4.2.0
Requested by Chymera, to avoid duplication between ::guru and ::sci. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/keyrings-alt')
-rw-r--r--dev-python/keyrings-alt/Manifest1
-rw-r--r--dev-python/keyrings-alt/keyrings-alt-4.2.0.ebuild50
-rw-r--r--dev-python/keyrings-alt/metadata.xml13
3 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/keyrings-alt/Manifest b/dev-python/keyrings-alt/Manifest
new file mode 100644
index 000000000000..15929005b4e3
--- /dev/null
+++ b/dev-python/keyrings-alt/Manifest
@@ -0,0 +1 @@
+DIST keyrings.alt-4.2.0.gh.tar.gz 27017 BLAKE2B 736c3de24f54340c7f0c1e8e2b5eb453211fa2a786ec8ac98f9ae959d6f8f661b6d572f06cd362550d0a72bc7e3fbd44746d192e670ab61f7964d4f614aab870 SHA512 395b5a53cb05f3bc96aaf0a2dd826b185902d1ef03f9603f4731bf334938cfd36c7430e41ed7f6c574d54c56ed6a77e1160c741b02877cd3c1169ae1ca86f437
diff --git a/dev-python/keyrings-alt/keyrings-alt-4.2.0.ebuild b/dev-python/keyrings-alt/keyrings-alt-4.2.0.ebuild
new file mode 100644
index 000000000000..36d6454cbf0b
--- /dev/null
+++ b/dev-python/keyrings-alt/keyrings-alt-4.2.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P="${P/-/.}"
+DESCRIPTION="Alternate keyring implementations"
+HOMEPAGE="
+ https://github.com/jaraco/keyrings.alt/
+ https://pypi.org/project/keyrings.alt/
+"
+SRC_URI="
+ https://github.com/jaraco/keyrings.alt/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/jaraco-classes[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ >=dev-python/setuptools_scm-3.4.1[${PYTHON_USEDEP}]
+ test? (
+ dev-python/keyring[${PYTHON_USEDEP}]
+ dev-python/pycryptodome[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+src_prepare() {
+ # oldschool namespaces
+ rm keyrings/__init__.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ epytest -k 'not Cryptodome'
+}
diff --git a/dev-python/keyrings-alt/metadata.xml b/dev-python/keyrings-alt/metadata.xml
new file mode 100644
index 000000000000..e1c2fd1c8a2b
--- /dev/null
+++ b/dev-python/keyrings-alt/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="pypi">keyrings.alt</remote-id>
+ <remote-id type="github">jaraco/keyrings.alt</remote-id>
+ </upstream>
+</pkgmetadata>