From f660e1851218ff2ae9ae6c2831be962e67c811f6 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sun, 21 Apr 2024 15:52:10 -0400 Subject: [PATCH] New package: python3-cattrs-23.2.3 --- srcpkgs/python3-cattrs/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/python3-cattrs/template diff --git a/srcpkgs/python3-cattrs/template b/srcpkgs/python3-cattrs/template new file mode 100644 index 00000000000..70ab0f250ec --- /dev/null +++ b/srcpkgs/python3-cattrs/template @@ -0,0 +1,26 @@ +# Template file for 'python3-cattrs' +pkgname=python3-cattrs +version=23.2.3 +revision=1 +build_style=python3-pep517 +make_check_args="--ignore tests/test_preconf.py + --ignore tests/test_unstructure_collections.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 " +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=a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f + +pre_check() { + vsed -i -e '/addopts/d' pyproject.toml +} + +post_install() { + vlicense LICENSE +}