Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions srcpkgs/mpm/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Template file for 'mpm'
pkgname=mpm
version=7.4.1
revision=1
build_style=python3-pep517
hostmakedepends="uv-build"
depends="python3-boltons python3-click-extra python3-extra-platforms python3-packageurl-python python3-tomli-w python3-xmltodict"
checkdepends="${depends} python3-pytest python3-tomlkit python3-yaml"
short_desc="CLI that wraps all package managers behind a unifying interface"
maintainer="Kevin Deldycke <kevin@deldycke.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/kdeldycke/meta-package-manager"
distfiles="${PYPI_SITE}/m/meta-package-manager/meta_package_manager-7.4.1.tar.gz"
checksum=b3ff8c1d9f27bcec3432c58797aa83816d7a53d53fd1cf73ea2d1275403f4e18

do_check() {
python3 -m venv --system-site-packages venv
venv/bin/python3 -m installer --overwrite-existing dist/*.whl
# Skip the "integration" tests, which drive real package managers.
venv/bin/python3 -m pytest -m "not integration"
}

post_install() {
vlicense LICENSE 2>/dev/null || vlicense LICENSE.txt 2>/dev/null \
|| vlicense COPYING 2>/dev/null || :
}
62 changes: 0 additions & 62 deletions srcpkgs/python3-boltons/patches/py39-test.patch

This file was deleted.

12 changes: 6 additions & 6 deletions srcpkgs/python3-boltons/template
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Template file for 'python3-boltons'
pkgname=python3-boltons
version=20.2.1
revision=6
build_style=python3-module
hostmakedepends="python3-setuptools"
version=25.0.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-flit_core"
depends="python3"
checkdepends="python3-pytest"
short_desc="Collection of functionality to be bolted on the standard lib"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Kevin Deldycke <kevin@deldycke.com>"
license="BSD-3-Clause"
homepage="https://github.com/mahmoud/boltons"
distfiles="https://github.com/mahmoud/boltons/archive/${version}.tar.gz"
checksum=f5b63fba62bed021c5086e43b4cfdaf6c8396a3ae1ccdcb549b4eb2f36f8a794
checksum=7c9e47f2ca1c1f704950e913bf518c6c599dc4a01bc5feffffce2c3bf3c878ee

post_install() {
vlicense LICENSE
Expand Down
26 changes: 26 additions & 0 deletions srcpkgs/python3-click-extra/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Template file for 'python3-click-extra'
pkgname=python3-click-extra
version=8.6.2
revision=1
build_style=python3-pep517
hostmakedepends="uv-build"
depends="python3-boltons python3-click python3-cloup python3-deepmerge python3-extra-platforms python3-tabulate python3-wcwidth python3-wcmatch"
checkdepends="${depends} git python3-hjson python3-jsonschema python3-myst-parser python3-Pygments python3-pytest python3-pytest-httpserver python3-requests python3-sphinx python3-tomlkit python3-xmltodict python3-yaml"
short_desc="Drop-in replacement for Click to build colorful, user-friendly CLIs"
maintainer="Kevin Deldycke <kevin@deldycke.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/kdeldycke/click-extra"
distfiles="${PYPI_SITE}/c/click-extra/click_extra-8.6.2.tar.gz"
checksum=f21ec082021c09a2977e3320ff2c189ac2216e1a6f71a3297f4d0347582b53e0

do_check() {
python3 -m venv --system-site-packages venv
venv/bin/python3 -m installer --overwrite-existing dist/*.whl
# Skip tests requiring network access.
venv/bin/python3 -m pytest -m "not network"
}

post_install() {
vlicense LICENSE 2>/dev/null || vlicense LICENSE.txt 2>/dev/null \
|| vlicense COPYING 2>/dev/null || :
}
26 changes: 26 additions & 0 deletions srcpkgs/python3-cloup/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Template file for 'python3-cloup'
pkgname=python3-cloup
version=3.1.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-wheel python3-setuptools_scm"
depends="python3-click"
checkdepends="${depends} python3-pytest"
short_desc="Click extension: option groups, constraints, aliases and themed help"
maintainer="Kevin Deldycke <kevin@deldycke.com>"
license="MIT"
homepage="https://github.com/janluke/cloup"
distfiles="${PYPI_SITE}/c/cloup/cloup-3.1.0.tar.gz"
checksum=637c1e628fe98f3f20a5e44da591a72b42bf54d7d4527190bf39ed5f64af7585

post_extract() {
# Cloup pins ``setuptools_scm<10`` via legacy ``setup_requires`` which
# triggers a network fetch inside the build sandbox. Void ships
# setuptools_scm 10.x, so widen the constraint to use the host package.
vsed -i -e "s/setuptools_scm<10/setuptools_scm/" setup.py
}

post_install() {
vlicense LICENSE 2>/dev/null || vlicense LICENSE.txt 2>/dev/null \
|| vlicense COPYING 2>/dev/null || :
}
19 changes: 19 additions & 0 deletions srcpkgs/python3-deepmerge/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-deepmerge'
pkgname=python3-deepmerge
version=2.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel python3-setuptools_scm"
depends="python3"
checkdepends="${depends} python3-pytest"
short_desc="Tools to handle merging of nested data structures in Python"
maintainer="Kevin Deldycke <kevin@deldycke.com>"
license="MIT"
homepage="https://github.com/toumorokoshi/deepmerge"
distfiles="${PYPI_SITE}/d/deepmerge/deepmerge-2.0.tar.gz"
checksum=5c3d86081fbebd04dd5de03626a0607b809a98fb6ccba5770b62466fe940ff20

post_install() {
vlicense LICENSE 2>/dev/null || vlicense LICENSE.txt 2>/dev/null \
|| vlicense COPYING 2>/dev/null || :
}
26 changes: 26 additions & 0 deletions srcpkgs/python3-extra-platforms/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Template file for 'python3-extra-platforms'
pkgname=python3-extra-platforms
version=13.5.1
revision=1
build_style=python3-pep517
hostmakedepends="uv-build"
depends="python3"
checkdepends="${depends} python3-pytest"
short_desc="Detect architectures, platforms, shells, terminals, CI systems and agents"
maintainer="Kevin Deldycke <kevin@deldycke.com>"
license="Apache-2.0"
homepage="https://github.com/kdeldycke/extra-platforms"
distfiles="${PYPI_SITE}/e/extra-platforms/extra_platforms-13.5.1.tar.gz"
checksum=89100acdf8aa28f8c589981b653e9f42a5bd68ce932c33cbd6faa7a81731c7c6

do_check() {
python3 -m venv --system-site-packages venv
venv/bin/python3 -m installer --overwrite-existing dist/*.whl
# Skip tests requiring network access.
venv/bin/python3 -m pytest -m "not network"
}

post_install() {
vlicense LICENSE 2>/dev/null || vlicense LICENSE.txt 2>/dev/null \
|| vlicense COPYING 2>/dev/null || :
}
21 changes: 21 additions & 0 deletions srcpkgs/python3-packageurl-python/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Template file for 'python3-packageurl-python'
pkgname=python3-packageurl-python
version=0.17.6
revision=1
build_style=python3-module
# test_purl_spec.py needs a git submodule absent from the sdist.
make_check_args="--ignore tests/test_purl_spec.py"
hostmakedepends="python3-setuptools python3-wheel"
depends="python3"
checkdepends="${depends} python3-pytest"
short_desc="Package URL (purl) parser and builder"
maintainer="Kevin Deldycke <kevin@deldycke.com>"
license="MIT"
homepage="https://github.com/package-url/packageurl-python"
distfiles="${PYPI_SITE}/p/packageurl-python/packageurl_python-0.17.6.tar.gz"
checksum=1252ce3a102372ca6f86eb968e16f9014c4ba511c5c37d95a7f023e2ca6e5c25

post_install() {
vlicense LICENSE 2>/dev/null || vlicense LICENSE.txt 2>/dev/null \
|| vlicense COPYING 2>/dev/null || :
}