commit:     1d13bf9e75c10a2efd426f6524d64f10b53ba872
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Mon Jan 29 16:31:36 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 23 02:36:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d13bf9e

dev-util/prysk: new package, add 0.20.0

Should serve as a replacement to the abandonned[1][2] cram.

1: "This repository has been archived by the owner on Aug 4, 2022. It is now 
read-only."
2: aiiie/cram#35

[sam: Add commit message from PR desc.]

Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Part-of: https://github.com/gentoo/gentoo/pull/35076
Closes: https://github.com/gentoo/gentoo/pull/35076
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/prysk/Manifest            |  1 +
 dev-util/prysk/metadata.xml        | 23 +++++++++++++++++++++++
 dev-util/prysk/prysk-0.20.0.ebuild | 33 +++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+)

diff --git a/dev-util/prysk/Manifest b/dev-util/prysk/Manifest
new file mode 100644
index 000000000000..4add73878c14
--- /dev/null
+++ b/dev-util/prysk/Manifest
@@ -0,0 +1 @@
+DIST prysk-0.20.0.gh.tar.gz 79409 BLAKE2B 
c44dab456ddf6ddda6b6a24bb1229e11b4edd6ffe43a71a53eb1577e1d99fba6234807e857b8a72318dfd9202a1449c3271dba95f59815bf79f400a1380865d8
 SHA512 
472dee2d42012bb33c9a6d0c63a03c08eb6adccdd6c194928ddca001c25c34cdfadc58df742a59c84a311b9ca2e1fce48622e7b172d3ee62a640b7f84d13ade9

diff --git a/dev-util/prysk/metadata.xml b/dev-util/prysk/metadata.xml
new file mode 100644
index 000000000000..c7f939ddfa52
--- /dev/null
+++ b/dev-util/prysk/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Haelwenn (lanodan) Monnier</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <stabilize-allarches/>
+       <longdescription lang="en">
+               Prysk is a fork of the popular snapshot testing tool Cram.
+               Prysk tests look like snippets of interactive shell sessions. 
Prysk
+               runs each command and compares the command output in the test 
with
+               the command's actual output.
+       </longdescription>
+       <upstream>
+               <remote-id type="pypi">prysk</remote-id>
+               <remote-id type="github">prysk/prysk</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-util/prysk/prysk-0.20.0.ebuild 
b/dev-util/prysk/prysk-0.20.0.ebuild
new file mode 100644
index 000000000000..924561ec21b4
--- /dev/null
+++ b/dev-util/prysk/prysk-0.20.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+DISTUTILS_USE_PEP517=poetry
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Functional testing framework for command line applications (cram 
fork)"
+HOMEPAGE="https://www.prysk.net/";
+# pypi doesn't includes tests
+SRC_URI="https://github.com/prysk/prysk/archive/refs/tags/${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
+
+distutils_enable_tests pytest
+
+RDEPEND="
+       $(python_gen_cond_dep '>=dev-python/rich-13.3.1[${PYTHON_USEDEP}]')
+"
+
+DOCS=( README.rst docs examples )
+
+python_test() {
+       distutils-r1_python_test
+
+       "${EPYTHON}" -m prysk test/integration || die "Tests fail with 
${EPYTHON}"
+}

Reply via email to