39 lines
1.4 KiB
Bash
39 lines
1.4 KiB
Bash
# Template file for 'python3-cattrs'
|
|
pkgname=python3-cattrs
|
|
version=24.1.2
|
|
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=8028cfe1ff5382df59dd36474a86e02d817b06eaf8af84555441bac915d2ef85
|
|
|
|
pre_check() {
|
|
vsed -i -e '/addopts/d' pyproject.toml
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|