From ef70729012bcacbac2bd1c5e8d70098b43f59485 Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Thu, 12 Oct 2023 00:51:53 +0300 Subject: [PATCH] New package: python3-scikit-build-0.17.6 --- .../patch-out-hatch-fancy-pypi-readme.patch | 44 +++++++++++++++++++ srcpkgs/python3-scikit-build/template | 22 ++++++++++ 2 files changed, 66 insertions(+) create mode 100644 srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch create mode 100644 srcpkgs/python3-scikit-build/template diff --git a/srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch b/srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch new file mode 100644 index 00000000000..489356ed8cf --- /dev/null +++ b/srcpkgs/python3-scikit-build/patches/patch-out-hatch-fancy-pypi-readme.patch @@ -0,0 +1,44 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["hatchling", "hatch-fancy-pypi-readme", "hatch-vcs"] ++requires = ["hatchling", "hatch-vcs"] + build-backend = "hatchling.build" + + [project] +@@ -76,34 +76,6 @@ + build.hooks.vcs.version-file = "skbuild/_version.py" + + +-[tool.hatch.metadata.hooks.fancy-pypi-readme] +-content-type = "text/x-rst" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.rst" +-start-after = ".. START-INTRO" +-end-before = ".. END-INTRO" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "CHANGES.rst" +-start-after = ".. START-BRIEF-CHANGELOG" +-end-before = ".. END-BRIEF-CHANGELOG" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.rst" +-start-after = ".. INJECT-CHANGELOG" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] +-pattern = ':pr:`(\d+)`' +-replacement = '`#\1 `_' +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] +-pattern = ':issue:`(\d+)`' +-replacement = '`#\1 `_' +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] +-pattern = ':user:`(\S+)`' +-replacement = '`@\1 `_' + + + [tool.black] diff --git a/srcpkgs/python3-scikit-build/template b/srcpkgs/python3-scikit-build/template new file mode 100644 index 00000000000..7645db435d5 --- /dev/null +++ b/srcpkgs/python3-scikit-build/template @@ -0,0 +1,22 @@ +# Template file for 'python3-scikit-build' +pkgname=python3-scikit-build +version=0.17.6 +revision=1 +build_style=python3-pep517 +# test requires setuptools_scm to not be installed +make_check_args="-k not(nosetuptoolsscm)" +hostmakedepends="hatch-vcs python3-wheel" +depends="python3-distro python3-packaging python3-setuptools python3-wheel" +checkdepends="${depends} cmake gcc-fortran git ninja python3-Cython + python3-devel python3-pip python3-pytest-mock python3-requests + python3-virtualenv" +short_desc="Build system generator for Python C/C++/Cython/Fortran extensions" +maintainer="chrysos349 " +license="MIT" +homepage="https://scikit-build.org" +distfiles="${PYPI_SITE}/s/scikit_build/scikit_build-${version}.tar.gz" +checksum=b51a51a36b37c42650994b5047912f59b22e3210b23e321f287611f9ef6e5c9d + +post_install() { + vlicense LICENSE +}