Skip to content
Closed
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
23 changes: 23 additions & 0 deletions srcpkgs/mpm/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Template file for 'mpm'
pkgname=mpm
version=7.6.1
revision=1
build_style=python3-pep517
# Void has no python3-cyclonedx-python-lib or python3-respx, which the SBOM
# tests import.
make_check_args="--skip-destructive --ignore tests/test_sbom.py
--ignore tests/test_sbom_vulnerabilities.py"
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-${version}.tar.gz"
checksum=b504c57323c83dd545846abead91d1389cc843aa1ab01a20ac0eb96834f10344

# mpm drives the host package managers, so its CLI suite needs a populated
# system: in a build chroot every invocation exits on "No manager selected".
# Run it with `-K` on a real Void host instead.
make_check=extended
62 changes: 0 additions & 62 deletions srcpkgs/python3-boltons/patches/py39-test.patch

This file was deleted.

18 changes: 12 additions & 6 deletions srcpkgs/python3-boltons/template
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# 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_extract() {
# boltons caps ``flit_core<4`` in its build requirements. Void ships
# flit_core 4.x, which builds this pure-Python package unchanged.
vsed -i -e "s/flit_core >=3.2,<4/flit_core >=3.2/" pyproject.toml
}

post_install() {
vlicense LICENSE
Expand Down
25 changes: 25 additions & 0 deletions srcpkgs/python3-click-extra/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Template file for 'python3-click-extra'
pkgname=python3-click-extra
version=8.9.1
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-packaging python3-Pygments python3-pytest python3-pytest-httpserver python3-requests 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-${version}.tar.gz"
checksum=18a99d91d94375aaa27dc6a5efdebf6cb0cd0637bae49fd1cb6d8a6398cf8294

do_check() {
local testdir="${wrksrc}/.xbps-testdir"

python3 -m installer --destdir "${testdir}" dist/*.whl
# Void has no python3-myst-parser or python3-mkdocs, which the
# documentation-extension tests import.
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \
python3 -m pytest -m "not network" \
--ignore tests/mkdocs --ignore tests/sphinx
}
25 changes: 25 additions & 0 deletions srcpkgs/python3-cloup/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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-${version}.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
}
18 changes: 18 additions & 0 deletions srcpkgs/python3-deepmerge/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Template file for 'python3-deepmerge'
pkgname=python3-deepmerge
version=3.0.1
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-${version}.tar.gz"
checksum=35b39a4cb92cf328d6eca61cbbf65f68a37c2ceb3085f0f853cbb2e52a59fc23

post_install() {
vlicense LICENSE
}
24 changes: 24 additions & 0 deletions srcpkgs/python3-extra-platforms/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Template file for 'python3-extra-platforms'
pkgname=python3-extra-platforms
version=13.9.0
revision=1
build_style=python3-pep517
hostmakedepends="uv-build"
depends="python3"
checkdepends="${depends} python3-pytest"
short_desc="Detect architectures, platforms, shells, terminals, CI systems, 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-${version}.tar.gz"
checksum=971d373715cdcf5f4e5bdec5cd733b058fb589d7365ba964f654617bc35fcedc

do_check() {
local testdir="${wrksrc}/.xbps-testdir"

python3 -m installer --destdir "${testdir}" dist/*.whl
# test_trait.py reaches click-extra through extra_platforms._docs, and
# click-extra depends on this package.
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \
python3 -m pytest -m "not network" --ignore tests/test_trait.py
}
20 changes: 20 additions & 0 deletions srcpkgs/python3-packageurl-python/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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-${version}.tar.gz"
checksum=1252ce3a102372ca6f86eb968e16f9014c4ba511c5c37d95a7f023e2ca6e5c25

post_install() {
vlicense mit.LICENSE LICENSE
}