From 072846afca3e1641f266512563e98e9e8306382f Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Tue, 17 Oct 2023 19:26:45 +0200 Subject: [PATCH] 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 +}