From 1f25e2ec8e84a8b62ce911f0af5ae8159b612202 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 22 Aug 2023 16:41:12 -0400 Subject: [PATCH] New package: python3-dirty-equals-0.7.1 --- .../patches/no-pytest-filterwarnings.patch | 12 +++++++++++ srcpkgs/python3-dirty-equals/template | 21 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch create mode 100644 srcpkgs/python3-dirty-equals/template diff --git a/srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch b/srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch new file mode 100644 index 00000000000..e9ff2cc4a4c --- /dev/null +++ b/srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch @@ -0,0 +1,12 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 1b8ff7a..3a753ac 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -59,7 +59,6 @@ target-version = 'py37' + + [tool.pytest.ini_options] + testpaths = "tests" +-filterwarnings = "error" + + [tool.coverage.run] + source = ["dirty_equals"] diff --git a/srcpkgs/python3-dirty-equals/template b/srcpkgs/python3-dirty-equals/template new file mode 100644 index 00000000000..55b6835e143 --- /dev/null +++ b/srcpkgs/python3-dirty-equals/template @@ -0,0 +1,21 @@ +# Template file for 'python3-dirty-equals' +pkgname=python3-dirty-equals +version=0.7.1 +revision=1 +build_style=python3-pep517 +# requires unpackaged pytest-examples and circular dependency on pydantic +make_check_args="--ignore=tests/test_docs.py --ignore=tests/test_other.py" +hostmakedepends="hatchling" +depends="python3-pytz" +checkdepends="${depends} python3-pytest" +short_desc="Doing dirty (but extremely useful) things with equals" +maintainer="Joel Beckmeyer " +license="MIT" +homepage="https://github.com/samuelcolvin/dirty-equals" +changelog="https://github.com/samuelcolvin/dirty-equals/releases" +distfiles="${PYPI_SITE}/d/dirty_equals/dirty_equals-${version}.tar.gz" +checksum=a580513f3285e93656a770a04e428f8bfc513848877bf278282dbfbb907fdbb4 + +post_install() { + vlicense LICENSE +}