diff --git a/srcpkgs/python3-reflink/patches/remove-deprecated-pytest-runner.patch b/srcpkgs/python3-reflink/patches/remove-deprecated-pytest-runner.patch new file mode 100644 index 00000000000..f43dc765356 --- /dev/null +++ b/srcpkgs/python3-reflink/patches/remove-deprecated-pytest-runner.patch @@ -0,0 +1,21 @@ +--- a/setup.py 2021-10-06 20:25:26.847727634 -0400 ++++ b/setup.py 2021-10-06 20:25:54.167862198 -0400 +@@ -18,11 +18,6 @@ + 'cffi', + ] + +-setup_requirements = [ +- 'cffi', +- 'pytest-runner', +-] +- + test_requirements = [ + 'pytest', + ] +@@ -60,6 +55,5 @@ + ], + test_suite='tests', + tests_require=test_requirements, +- setup_requires=setup_requirements, + cffi_modules=["reflink/native.py:ffibuilder"] + ) diff --git a/srcpkgs/python3-reflink/template b/srcpkgs/python3-reflink/template new file mode 100644 index 00000000000..01a654c8b8f --- /dev/null +++ b/srcpkgs/python3-reflink/template @@ -0,0 +1,23 @@ +# Template file for 'python3-reflink' +pkgname=python3-reflink +version=0.2.1 +revision=1 +wrksrc="reflink-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-devel python3-cffi" +depends="python3-cffi" +short_desc="Python wrapper around the reflink system calls" +maintainer="Joel Beckmeyer " +license="MIT" +homepage="https://gitlab.com/rubdos/pyreflink" +distfiles="${PYPI_SITE}/r/reflink/reflink-${version}.tar.gz" +checksum=c9253582db24413bfd703abfc1b2a49de78f31b4907239f286e9a1929a1e6e3a +# test suite includes calls to mount/umount and writing to /dev which fail due +# to chroot-util-linux not including mount/umount and no permissions, +# respectively +make_check=no + +post_install() { + vlicense LICENSE +}