diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-13 22:38:29 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-13 22:39:55 +0300 |
commit | b2c40288ae852a67569c9cf3f907c4b0ee383825 (patch) | |
tree | a1b33abb713d8c9ba600f3a13809c6900825795c /dev-python/secretstorage | |
parent | dev-python/mkdocs-material: add 8.4.0 (diff) | |
download | gentoo-b2c40288ae852a67569c9cf3f907c4b0ee383825.tar.gz gentoo-b2c40288ae852a67569c9cf3f907c4b0ee383825.tar.bz2 gentoo-b2c40288ae852a67569c9cf3f907c4b0ee383825.zip |
dev-python/secretstorage: add 3.3.3
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/secretstorage')
-rw-r--r-- | dev-python/secretstorage/Manifest | 1 | ||||
-rw-r--r-- | dev-python/secretstorage/secretstorage-3.3.3.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/secretstorage/Manifest b/dev-python/secretstorage/Manifest index 6c378ec84501..5ad286c4d8e2 100644 --- a/dev-python/secretstorage/Manifest +++ b/dev-python/secretstorage/Manifest @@ -1 +1,2 @@ DIST SecretStorage-3.3.2.tar.gz 19285 BLAKE2B 17089e61a9549f4547faa8c6f7f711f5e4b3ba9ac0bf7787c3384d4920c5cd02704bab86fd4b7abe4ad9b93098b1668cf89901f4a0760023e274c8daf009d5a4 SHA512 f04a35925f86fec25435554083ac0d4b21b88cbc19b67a4c744247e659bc767675a52d18b33be557e99593922aecb0c261ec40803c61e089ff35b6c8b541ac63 +DIST SecretStorage-3.3.3.tar.gz 19739 BLAKE2B 9ad575df8b059102a38b4f20c956bf80a5f440a80c13a9fe10a96b14c49bd7868667306b75fca7a395e4d4ce44d28174fafcf27521446d4c7d070c5381eeeed7 SHA512 9a048c8245cfb01babebdd85dbbe84f9634b9b28188f7d11d3abad841109cfa307861de05e529199e409e595864ff3e097fcc961fcff210040d214a50f932f6e diff --git a/dev-python/secretstorage/secretstorage-3.3.3.ebuild b/dev-python/secretstorage/secretstorage-3.3.3.ebuild new file mode 100644 index 000000000000..baa031fa53b2 --- /dev/null +++ b/dev-python/secretstorage/secretstorage-3.3.3.ebuild @@ -0,0 +1,55 @@ +# 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_PN="SecretStorage" + +DESCRIPTION="Python bindings to FreeDesktop.org Secret Service API" +HOMEPAGE=" + https://github.com/mitya57/secretstorage/ + https://pypi.org/project/SecretStorage/ +" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/cryptography[${PYTHON_USEDEP}] + >=dev-python/jeepney-0.6[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + !hppa? ( !sparc? ( !s390? ( + sys-apps/dbus + virtual/secret-service + ) + ) ) ) +" + +distutils_enable_tests unittest +distutils_enable_sphinx docs \ + dev-python/alabaster + +src_test() { + + if ! has_version "virtual/secret-service"; then + einfo "gnome-keyring is not supported on ${ARCH}, skipping tests" + return + fi + + distutils-r1_src_test +} + +python_test() { + dbus-run-session "${EPYTHON}" -m unittest discover -v -s tests \ + || die "tests failed with ${EPYTHON}" +} |