From 440c561d2f1fbcd887a257c5549ffa308fbbd915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 27 Aug 2022 18:27:18 +0700 Subject: [PATCH] New package: python3-phx-class-registry-3.0.5 --- .../patches/test-entrypoint.patch | 13 ++++++++++++ srcpkgs/python3-phx-class-registry/template | 20 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/python3-phx-class-registry/patches/test-entrypoint.patch create mode 100644 srcpkgs/python3-phx-class-registry/template diff --git a/srcpkgs/python3-phx-class-registry/patches/test-entrypoint.patch b/srcpkgs/python3-phx-class-registry/patches/test-entrypoint.patch new file mode 100644 index 00000000000..4bfe21c99c1 --- /dev/null +++ b/srcpkgs/python3-phx-class-registry/patches/test-entrypoint.patch @@ -0,0 +1,13 @@ +--- a/phx_class_registry.egg-info/SOURCES.txt ++++ b/phx_class_registry.egg-info/SOURCES.txt +@@ -13,9 +13,3 @@ phx_class_registry.egg-info/SOURCES.txt + phx_class_registry.egg-info/dependency_links.txt + phx_class_registry.egg-info/requires.txt + phx_class_registry.egg-info/top_level.txt +-test/__init__.py +-test/auto_register_test.py +-test/cache_test.py +-test/entry_points_test.py +-test/patcher_test.py +-test/registry_test.py +\ No newline at end of file diff --git a/srcpkgs/python3-phx-class-registry/template b/srcpkgs/python3-phx-class-registry/template new file mode 100644 index 00000000000..abd03589b53 --- /dev/null +++ b/srcpkgs/python3-phx-class-registry/template @@ -0,0 +1,20 @@ +# Template file for 'python3-phx-class-registry' +pkgname=python3-phx-class-registry +version=3.0.5 +revision=1 +wrksrc="phx-class-registry-${version}" +build_style=python3-pep517 +hostmakedepends="python3-wheel" +depends="python3" +checkdepends="python3-pytest" +short_desc="Registry pattern for Python classes" +maintainer="Đoàn Trần Công Danh " +license="MIT" +homepage="https://class-registry.readthedocs.io/" +distfiles="${PYPI_SITE}/p/phx-class-registry/phx-class-registry-3.0.5.tar.gz" +checksum=f11462ac410a8cda38c2b6a83b51a2390c7d9528baef591cb5b551b11aba2a92 + +post_extract() { + # Requires dummy_package.egg-info + rm -f test/entry_points_test.py +}