void-packages/srcpkgs/python3-cattrs/template
2025-06-08 15:25:01 -04:00

38 lines
1.4 KiB
Bash

# Template file for 'python3-cattrs'
pkgname=python3-cattrs
version=25.1.1
revision=1
build_style=python3-pep517
# Initial ignores require unpackaged dependencies;
# deselections and subsequent ignores do invalid NaN comparisons
make_check_args="--ignore tests/test_cols.py
--ignore tests/test_preconf.py
--ignore tests/preconf/test_msgspec_cpython.py
--ignore tests/preconf/test_pyyaml.py
--ignore tests/test_unstructure_collections.py
--deselect tests/test_gen_dict.py::test_individual_overrides
--deselect tests/test_gen_dict.py::test_nodefs_generated_unstructuring_cl
--deselect tests/test_gen_dict.py::test_renaming
--deselect tests/test_gen_dict.py::test_unmodified_generated_structuring
--deselect tests/test_structure_attrs.py::test_structure_simple_from_dict_default
--ignore tests/test_baseconverter.py
--ignore tests/test_converter.py"
make_check_target="tests"
hostmakedepends="hatchling hatch-vcs"
depends="python3-attrs"
checkdepends="python3-pytest-xdist python3-hypothesis ${depends}"
short_desc="Composable custom class converters for Python"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://catt.rs"
changelog="https://github.com/python-attrs/cattrs/blob/main/HISTORY.md"
distfiles="${PYPI_SITE}/c/cattrs/cattrs-${version}.tar.gz"
checksum=c914b734e0f2d59e5b720d145ee010f1fd9a13ee93900922a2f3f9d593b8382c
pre_check() {
vsed -i -e '/addopts/d' pyproject.toml
}
post_install() {
vlicense LICENSE
}