From 50976c650db3ad29a07a1ec2314d205dd0317acc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Wed, 24 Jul 2024 14:33:24 +0200 Subject: [PATCH] [dev-python/pymongocrypt] replace test with sed from pymongo --- .../pymongocrypt-1.10.1-no-req-text.patch | 22 ------------------- .../pymongocrypt/pymongocrypt-1.10.1.ebuild | 10 +++++---- 2 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 dev-python/pymongocrypt/files/pymongocrypt-1.10.1-no-req-text.patch diff --git a/dev-python/pymongocrypt/files/pymongocrypt-1.10.1-no-req-text.patch b/dev-python/pymongocrypt/files/pymongocrypt-1.10.1-no-req-text.patch deleted file mode 100644 index f3af3e0..0000000 --- a/dev-python/pymongocrypt/files/pymongocrypt-1.10.1-no-req-text.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 -+++ b/pyproject.toml 2024-06-27 00:04:16.829810520 +0200 -@@ -1,5 +1,5 @@ - [build-system] --requires = ["hatchling>1.24","hatch-requirements-txt>=0.4.1"] -+requires = ["hatchling>1.24"] - build-backend = "hatchling.build" - - [project] -@@ -49,12 +49,6 @@ - # Used to call hatch_build.py - [tool.hatch.build.hooks.custom] - --[tool.hatch.metadata.hooks.requirements_txt] --files = ["requirements.txt"] -- --[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] --test = ["requirements-test.txt"] -- - [tool.ruff.lint] - select = [ - "E", "F", "W", # flake8 diff --git a/dev-python/pymongocrypt/pymongocrypt-1.10.1.ebuild b/dev-python/pymongocrypt/pymongocrypt-1.10.1.ebuild index d47faef..972b77a 100644 --- a/dev-python/pymongocrypt/pymongocrypt-1.10.1.ebuild +++ b/dev-python/pymongocrypt/pymongocrypt-1.10.1.ebuild @@ -35,12 +35,14 @@ BDEPEND=" ) " -PATCHES=( - "${FILESDIR}/${P}-no-req-text.patch" -) - distutils_enable_tests pytest +src_prepare() { + distutils-r1_src_prepare + # we do not want hatch-requirements-txt and its ton of NIH deps + sed -i -e '/requirements/d' pyproject.toml || die +} + python_test() { local EPYTEST_DESELECT=( # slow