aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré L. C. Moreira <andrelcmoreira@disroot.org>2024-03-30 18:47:23 +0000
committercinerea0 <49368915+cinerea0@users.noreply.github.com>2024-04-13 21:53:38 +0000
commit0d56b35b155f327597874daac68fb9cc9d384f92 (patch)
tree4e686f6b50b87c8a8621e8511742655dd989a128
parent3b1ded9bc3b51fda580be2f2c9d1257a36f7ebc1 (diff)
downloadvoid-packages-0d56b35b155f327597874daac68fb9cc9d384f92.tar
void-packages-0d56b35b155f327597874daac68fb9cc9d384f92.tar.gz
void-packages-0d56b35b155f327597874daac68fb9cc9d384f92.tar.bz2
void-packages-0d56b35b155f327597874daac68fb9cc9d384f92.tar.lz
void-packages-0d56b35b155f327597874daac68fb9cc9d384f92.tar.xz
void-packages-0d56b35b155f327597874daac68fb9cc9d384f92.tar.zst
void-packages-0d56b35b155f327597874daac68fb9cc9d384f92.zip
python3-nose2: update to 0.14.1
-rw-r--r--srcpkgs/python3-nose2/patches/disable-coverage.patch12
-rw-r--r--srcpkgs/python3-nose2/patches/no-versioned-nose2.patch10
-rw-r--r--srcpkgs/python3-nose2/template13
3 files changed, 21 insertions, 14 deletions
diff --git a/srcpkgs/python3-nose2/patches/disable-coverage.patch b/srcpkgs/python3-nose2/patches/disable-coverage.patch
new file mode 100644
index 00000000000..fc9dd218453
--- /dev/null
+++ b/srcpkgs/python3-nose2/patches/disable-coverage.patch
@@ -0,0 +1,12 @@
+diff --git a/tox.ini b/tox.ini
+index d644570..1c50f7c 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -10,7 +10,6 @@ commands =
+ nocov: nose2 -v --pretty-assert {posargs}
+ !nocov: coverage erase
+ !nocov: coverage run nose2 -v --pretty-assert {posargs}
+- !nocov: coverage report
+
+ [testenv:lint]
+ deps = pre-commit~=2.9.3
diff --git a/srcpkgs/python3-nose2/patches/no-versioned-nose2.patch b/srcpkgs/python3-nose2/patches/no-versioned-nose2.patch
deleted file mode 100644
index dbd8b0a7867..00000000000
--- a/srcpkgs/python3-nose2/patches/no-versioned-nose2.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/setup.py
-+++ b/setup.py
-@@ -89,7 +89,6 @@ else:
- params['entry_points'] = {
- 'console_scripts': [
- '%s = nose2:discover' % SCRIPT1,
-- '%s = nose2:discover' % SCRIPT2,
- ],
- }
- params['install_requires'] = parse_requirements('requirements.txt')
diff --git a/srcpkgs/python3-nose2/template b/srcpkgs/python3-nose2/template
index 067b712d2c9..9bf7d619fe3 100644
--- a/srcpkgs/python3-nose2/template
+++ b/srcpkgs/python3-nose2/template
@@ -1,18 +1,23 @@
# Template file for 'python3-nose2'
pkgname=python3-nose2
-version=0.8.0
-revision=7
+version=0.14.1
+revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-coverage python3-six"
+checkdepends="python3-pluggy tox"
short_desc="Next generation of nicer testing (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/nose-devs/nose2"
distfiles="${PYPI_SITE}/n/nose2/nose2-${version}.tar.gz"
-checksum=9052f2b46807b63d9bdf68e0768da1f8386368889b50043fd5d0889c470258f3
+checksum=7f8f03a21c9de2c33015933afcef72bf8e4a2d5dfec3b40092287de6e41b093a
conflicts="python-nose2>=0"
post_install() {
- vlicense license.txt
+ vlicense LICENSE
+}
+
+do_check() {
+ python3 -m tox -e py
}