From 0bf32997ed5b5e9cd8d63f5fdd3691173491b767 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Tue, 17 Oct 2023 19:26:45 +0200 Subject: [PATCH 1/2] New package: saturn-notebook-1.2.2 --- .../remove_poetry-dynamic-versioning.patch | 25 +++++++++++++++++++ srcpkgs/saturn-notebook/template | 18 +++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch create mode 100644 srcpkgs/saturn-notebook/template diff --git a/srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch b/srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch new file mode 100644 index 0000000000000..23ea0e50eda6f --- /dev/null +++ b/srcpkgs/saturn-notebook/patches/remove_poetry-dynamic-versioning.patch @@ -0,0 +1,25 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -33,21 +33,5 @@ + icecream = "^2.1.2" + mpi4py = "^3.1.3" + +-[tool.poetry-dynamic-versioning] +-enable = true +-vcs = "git" +-pattern = "^(?P\\d+\\.\\d+\\.\\d+)(-?((?P[a-zA-Z]+)\\.?(?P\\d+)?))?" +-format-jinja = """ +- {%- if distance == 0 -%} +- {{- base -}} +- {%- else -%} +- {{- base }}.dev{{ distance }}+{{commit}} +- {%- endif -%} +-""" +-format-jinja-imports = [ +- { module = "datetime", item = "datetime" } +-] +- + [build-system] +-requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] +-build-backend = "poetry_dynamic_versioning.backend" ++requires = ["poetry-core>=1.0.0"] diff --git a/srcpkgs/saturn-notebook/template b/srcpkgs/saturn-notebook/template new file mode 100644 index 0000000000000..8de7b69a96896 --- /dev/null +++ b/srcpkgs/saturn-notebook/template @@ -0,0 +1,18 @@ +# Template file for 'saturn-notebook' +pkgname=saturn-notebook +version=1.2.2 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-poetry-core python3-setuptools" +makedepends="python3-wheel" +short_desc="Plain-text Python notebooks with checkpointing" +maintainer="Eloi Torrents " +license="custom:Saturn" +homepage="https://github.com/mrzv/saturn" +#changelog="https://raw.githubusercontent.com/mrzv/saturn/master/CHANGELOG.md" +distfiles="${PYPI_SITE}/s/saturn_notebook/saturn_notebook-${version}.tar.gz" +checksum=0fc8090e61bc8f9d33b542650d83115c094b90160cab04e797d552722360dd0c + +post_install() { + vlicense LICENSE.txt +} From cd97a4d2caea477676342c6399551857d45585b7 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Fri, 27 Oct 2023 17:49:58 +0200 Subject: [PATCH 2/2] New package: python3-wurlitzer-3.0.3 --- srcpkgs/python3-wurlitzer/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/python3-wurlitzer/template diff --git a/srcpkgs/python3-wurlitzer/template b/srcpkgs/python3-wurlitzer/template new file mode 100644 index 0000000000000..638cb05f4b14d --- /dev/null +++ b/srcpkgs/python3-wurlitzer/template @@ -0,0 +1,15 @@ +# Template file for 'python3-wurlitzer' +pkgname=python3-wurlitzer +version=3.0.3 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="" +depends="" +short_desc="Capture C-level stdout/stderr in Python" +maintainer="Eloi Torrents " +license="MIT" +homepage="https://github.com/minrk/wurlitzer" +changelog="https://raw.githubusercontent.com/minrk/wurlitzer/main/CHANGELOG.md" +distfiles="${PYPI_SITE}/w/wurlitzer/wurlitzer-${version}.tar.gz" +checksum=224f5fe70618be3872c05dfddc8c457191ec1870654596279fcc1edadebe3e5b