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 +}