Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: python3-jinja2-time
@ 2022-07-18 20:26 tranzystorek-io
  2022-07-18 20:27 ` [PR PATCH] [Updated] " tranzystorek-io
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-18 20:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]

There is a new pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages jinja2-time
https://github.com/void-linux/void-packages/pull/38136

New package: python3-jinja2-time
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38136.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jinja2-time-38136.patch --]
[-- Type: text/x-diff, Size: 2639 bytes --]

From 88e3712f2ab9ae7aabcea2cbe65c5697633accc2 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 18 Jul 2022 22:25:27 +0200
Subject: [PATCH] New package: python3-jinja2-time

---
 .../patches/arrow-replace-to-shift.patch      | 19 ++++++++++++++++++
 srcpkgs/python3-jinja2-time/template          | 20 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
 create mode 100644 srcpkgs/python3-jinja2-time/template

diff --git a/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
new file mode 100644
index 000000000000..a95761e56931
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
@@ -0,0 +1,19 @@
+diff --git a/jinja2_time/jinja2_time.py b/jinja2_time/jinja2_time.py
+index ce713cb..717c8a0 100755
+--- a/jinja2_time/jinja2_time.py
++++ b/jinja2_time/jinja2_time.py
+@@ -19,11 +19,11 @@ class TimeExtension(Extension):
+         d = arrow.now(timezone)
+ 
+         # Parse replace kwargs from offset and include operator
+-        replace_params = {}
++        shift_params = {}
+         for param in offset.split(','):
+             interval, value = param.split('=')
+-            replace_params[interval.strip()] = float(operator + value.strip())
+-        d = d.replace(**replace_params)
++            shift_params[interval.strip()] = float(operator + value.strip())
++        d = d.shift(**shift_params)
+ 
+         if datetime_format is None:
+             datetime_format = self.environment.datetime_format
diff --git a/srcpkgs/python3-jinja2-time/template b/srcpkgs/python3-jinja2-time/template
new file mode 100644
index 000000000000..3080a82747b8
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-jinja2-time'
+pkgname=python3-jinja2-time
+version=0.2.0
+revision=1
+wrksrc="jinja2-time-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Arrow python3-Jinja2"
+checkdepends="python3-Arrow python3-freezegun python3-Jinja2 python3-pytest"
+short_desc="Jinja2 Extension for Dates and Times"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="MIT"
+homepage="https://github.com/hackebrot/jinja2-time"
+changelog="https://raw.githubusercontent.com/hackebrot/jinja2-time/main/HISTORY.rst"
+distfiles="${PYPI_SITE}/j/jinja2-time/jinja2-time-${version}.tar.gz"
+checksum=d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: python3-jinja2-time
  2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
@ 2022-07-18 20:27 ` tranzystorek-io
  2022-07-18 21:54 ` [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0 tranzystorek-io
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-18 20:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages jinja2-time
https://github.com/void-linux/void-packages/pull/38136

New package: python3-jinja2-time
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38136.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jinja2-time-38136.patch --]
[-- Type: text/x-diff, Size: 2645 bytes --]

From ddb5210313d74b9802b6953033a7d0fce359c3c9 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 18 Jul 2022 22:25:27 +0200
Subject: [PATCH] New package: python3-jinja2-time-0.2.0

---
 .../patches/arrow-replace-to-shift.patch      | 19 ++++++++++++++++++
 srcpkgs/python3-jinja2-time/template          | 20 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
 create mode 100644 srcpkgs/python3-jinja2-time/template

diff --git a/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
new file mode 100644
index 000000000000..a95761e56931
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
@@ -0,0 +1,19 @@
+diff --git a/jinja2_time/jinja2_time.py b/jinja2_time/jinja2_time.py
+index ce713cb..717c8a0 100755
+--- a/jinja2_time/jinja2_time.py
++++ b/jinja2_time/jinja2_time.py
+@@ -19,11 +19,11 @@ class TimeExtension(Extension):
+         d = arrow.now(timezone)
+ 
+         # Parse replace kwargs from offset and include operator
+-        replace_params = {}
++        shift_params = {}
+         for param in offset.split(','):
+             interval, value = param.split('=')
+-            replace_params[interval.strip()] = float(operator + value.strip())
+-        d = d.replace(**replace_params)
++            shift_params[interval.strip()] = float(operator + value.strip())
++        d = d.shift(**shift_params)
+ 
+         if datetime_format is None:
+             datetime_format = self.environment.datetime_format
diff --git a/srcpkgs/python3-jinja2-time/template b/srcpkgs/python3-jinja2-time/template
new file mode 100644
index 000000000000..3080a82747b8
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-jinja2-time'
+pkgname=python3-jinja2-time
+version=0.2.0
+revision=1
+wrksrc="jinja2-time-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Arrow python3-Jinja2"
+checkdepends="python3-Arrow python3-freezegun python3-Jinja2 python3-pytest"
+short_desc="Jinja2 Extension for Dates and Times"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="MIT"
+homepage="https://github.com/hackebrot/jinja2-time"
+changelog="https://raw.githubusercontent.com/hackebrot/jinja2-time/main/HISTORY.rst"
+distfiles="${PYPI_SITE}/j/jinja2-time/jinja2-time-${version}.tar.gz"
+checksum=d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0
  2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
  2022-07-18 20:27 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2022-07-18 21:54 ` tranzystorek-io
  2022-07-18 23:08 ` tranzystorek-io
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-18 21:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages jinja2-time
https://github.com/void-linux/void-packages/pull/38136

New package: python3-jinja2-time-0.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38136.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jinja2-time-38136.patch --]
[-- Type: text/x-diff, Size: 2645 bytes --]

From 1d0bb8d399b0e54b861975a5e5dc9ab61638d4d4 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 18 Jul 2022 22:25:27 +0200
Subject: [PATCH] New package: python3-jinja2-time-0.2.0

---
 .../patches/arrow-replace-to-shift.patch      | 19 ++++++++++++++++++
 srcpkgs/python3-jinja2-time/template          | 20 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
 create mode 100644 srcpkgs/python3-jinja2-time/template

diff --git a/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
new file mode 100644
index 000000000000..a95761e56931
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
@@ -0,0 +1,19 @@
+diff --git a/jinja2_time/jinja2_time.py b/jinja2_time/jinja2_time.py
+index ce713cb..717c8a0 100755
+--- a/jinja2_time/jinja2_time.py
++++ b/jinja2_time/jinja2_time.py
+@@ -19,11 +19,11 @@ class TimeExtension(Extension):
+         d = arrow.now(timezone)
+ 
+         # Parse replace kwargs from offset and include operator
+-        replace_params = {}
++        shift_params = {}
+         for param in offset.split(','):
+             interval, value = param.split('=')
+-            replace_params[interval.strip()] = float(operator + value.strip())
+-        d = d.replace(**replace_params)
++            shift_params[interval.strip()] = float(operator + value.strip())
++        d = d.shift(**shift_params)
+ 
+         if datetime_format is None:
+             datetime_format = self.environment.datetime_format
diff --git a/srcpkgs/python3-jinja2-time/template b/srcpkgs/python3-jinja2-time/template
new file mode 100644
index 000000000000..3080a82747b8
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-jinja2-time'
+pkgname=python3-jinja2-time
+version=0.2.0
+revision=1
+wrksrc="jinja2-time-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Arrow python3-Jinja2"
+checkdepends="python3-Arrow python3-freezegun python3-Jinja2 python3-pytest"
+short_desc="Jinja2 Extension for Dates and Times"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="MIT"
+homepage="https://github.com/hackebrot/jinja2-time"
+changelog="https://raw.githubusercontent.com/hackebrot/jinja2-time/main/HISTORY.rst"
+distfiles="${PYPI_SITE}/j/jinja2-time/jinja2-time-${version}.tar.gz"
+checksum=d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0
  2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
  2022-07-18 20:27 ` [PR PATCH] [Updated] " tranzystorek-io
  2022-07-18 21:54 ` [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0 tranzystorek-io
@ 2022-07-18 23:08 ` tranzystorek-io
  2022-07-20  6:34 ` tranzystorek-io
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-18 23:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages jinja2-time
https://github.com/void-linux/void-packages/pull/38136

New package: python3-jinja2-time-0.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38136.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jinja2-time-38136.patch --]
[-- Type: text/x-diff, Size: 2627 bytes --]

From d8b9556afde38ea66dd0f2b915e39b1d1b8a72c8 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 18 Jul 2022 22:25:27 +0200
Subject: [PATCH] New package: python3-jinja2-time-0.2.0

---
 .../patches/arrow-replace-to-shift.patch      | 19 ++++++++++++++++++
 srcpkgs/python3-jinja2-time/template          | 20 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
 create mode 100644 srcpkgs/python3-jinja2-time/template

diff --git a/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
new file mode 100644
index 000000000000..a95761e56931
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
@@ -0,0 +1,19 @@
+diff --git a/jinja2_time/jinja2_time.py b/jinja2_time/jinja2_time.py
+index ce713cb..717c8a0 100755
+--- a/jinja2_time/jinja2_time.py
++++ b/jinja2_time/jinja2_time.py
+@@ -19,11 +19,11 @@ class TimeExtension(Extension):
+         d = arrow.now(timezone)
+ 
+         # Parse replace kwargs from offset and include operator
+-        replace_params = {}
++        shift_params = {}
+         for param in offset.split(','):
+             interval, value = param.split('=')
+-            replace_params[interval.strip()] = float(operator + value.strip())
+-        d = d.replace(**replace_params)
++            shift_params[interval.strip()] = float(operator + value.strip())
++        d = d.shift(**shift_params)
+ 
+         if datetime_format is None:
+             datetime_format = self.environment.datetime_format
diff --git a/srcpkgs/python3-jinja2-time/template b/srcpkgs/python3-jinja2-time/template
new file mode 100644
index 000000000000..7abab025fff5
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-jinja2-time'
+pkgname=python3-jinja2-time
+version=0.2.0
+revision=1
+wrksrc="jinja2-time-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Arrow python3-Jinja2"
+checkdepends="${depends} python3-freezegun python3-pytest"
+short_desc="Jinja2 Extension for Dates and Times"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="MIT"
+homepage="https://github.com/hackebrot/jinja2-time"
+changelog="https://raw.githubusercontent.com/hackebrot/jinja2-time/main/HISTORY.rst"
+distfiles="${PYPI_SITE}/j/jinja2-time/jinja2-time-${version}.tar.gz"
+checksum=d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: New package: python3-jinja2-time-0.2.0
  2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
                   ` (2 preceding siblings ...)
  2022-07-18 23:08 ` tranzystorek-io
@ 2022-07-20  6:34 ` tranzystorek-io
  2022-07-21 14:09 ` [PR PATCH] [Updated] " tranzystorek-io
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-20  6:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/38136#issuecomment-1189885202

Comment:
This is mainly a dependency for introducing the https://github.com/cookiecutter/cookiecutter package that I have planned

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0
  2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
                   ` (3 preceding siblings ...)
  2022-07-20  6:34 ` tranzystorek-io
@ 2022-07-21 14:09 ` tranzystorek-io
  2022-07-21 14:13 ` New package: python3-cookiecutter-2.1.1 tranzystorek-io
  2022-07-21 14:14 ` [PR PATCH] [Closed]: " tranzystorek-io
  6 siblings, 0 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-21 14:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages jinja2-time
https://github.com/void-linux/void-packages/pull/38136

New package: python3-jinja2-time-0.2.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38136.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-jinja2-time-38136.patch --]
[-- Type: text/x-diff, Size: 4164 bytes --]

From 56e152bc55dd755b7a8615a61bde434dc0b6b452 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 18 Jul 2022 22:25:27 +0200
Subject: [PATCH 1/2] New package: python3-jinja2-time-0.2.0

---
 .../patches/arrow-replace-to-shift.patch      | 19 ++++++++++++++++++
 srcpkgs/python3-jinja2-time/template          | 20 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
 create mode 100644 srcpkgs/python3-jinja2-time/template

diff --git a/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
new file mode 100644
index 000000000000..a95761e56931
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
@@ -0,0 +1,19 @@
+diff --git a/jinja2_time/jinja2_time.py b/jinja2_time/jinja2_time.py
+index ce713cb..717c8a0 100755
+--- a/jinja2_time/jinja2_time.py
++++ b/jinja2_time/jinja2_time.py
+@@ -19,11 +19,11 @@ class TimeExtension(Extension):
+         d = arrow.now(timezone)
+ 
+         # Parse replace kwargs from offset and include operator
+-        replace_params = {}
++        shift_params = {}
+         for param in offset.split(','):
+             interval, value = param.split('=')
+-            replace_params[interval.strip()] = float(operator + value.strip())
+-        d = d.replace(**replace_params)
++            shift_params[interval.strip()] = float(operator + value.strip())
++        d = d.shift(**shift_params)
+ 
+         if datetime_format is None:
+             datetime_format = self.environment.datetime_format
diff --git a/srcpkgs/python3-jinja2-time/template b/srcpkgs/python3-jinja2-time/template
new file mode 100644
index 000000000000..7abab025fff5
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-jinja2-time'
+pkgname=python3-jinja2-time
+version=0.2.0
+revision=1
+wrksrc="jinja2-time-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Arrow python3-Jinja2"
+checkdepends="${depends} python3-freezegun python3-pytest"
+short_desc="Jinja2 Extension for Dates and Times"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="MIT"
+homepage="https://github.com/hackebrot/jinja2-time"
+changelog="https://raw.githubusercontent.com/hackebrot/jinja2-time/main/HISTORY.rst"
+distfiles="${PYPI_SITE}/j/jinja2-time/jinja2-time-${version}.tar.gz"
+checksum=d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40
+
+post_install() {
+	vlicense LICENSE
+}

From cce32875fffb71bf7064f36304dd807aff249c03 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Tue, 19 Jul 2022 08:47:55 +0200
Subject: [PATCH 2/2] New package: python3-cookiecutter-2.1.1

---
 srcpkgs/python3-cookiecutter/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-cookiecutter/template

diff --git a/srcpkgs/python3-cookiecutter/template b/srcpkgs/python3-cookiecutter/template
new file mode 100644
index 000000000000..00d123e64343
--- /dev/null
+++ b/srcpkgs/python3-cookiecutter/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-cookiecutter'
+pkgname=python3-cookiecutter
+version=2.1.1
+revision=1
+wrksrc="cookiecutter-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-binaryornot python3-click python3-Jinja2 python3-jinja2-time python3-requests python3-slugify python3-yaml"
+checkdepends="${depends} git python3-freezegun python3-pytest python3-pytest-cov python3-pytest-mock"
+short_desc="Command-line utility that creates projects from project templates"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/cookiecutter/cookiecutter"
+changelog="https://raw.githubusercontent.com/cookiecutter/cookiecutter/master/HISTORY.md"
+distfiles="${PYPI_SITE}/c/cookiecutter/cookiecutter-${version}.tar.gz"
+checksum=f3982be8d9c53dac1261864013fdec7f83afd2e42ede6f6dd069c5e149c540d5
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: New package: python3-cookiecutter-2.1.1
  2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
                   ` (4 preceding siblings ...)
  2022-07-21 14:09 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2022-07-21 14:13 ` tranzystorek-io
  2022-07-21 14:14 ` [PR PATCH] [Closed]: " tranzystorek-io
  6 siblings, 0 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-21 14:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/38136#issuecomment-1189885202

Comment:
This is mainly a dependency for introducing the https://github.com/cookiecutter/cookiecutter package that I have planned

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PR PATCH] [Closed]: New package: python3-cookiecutter-2.1.1
  2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
                   ` (5 preceding siblings ...)
  2022-07-21 14:13 ` New package: python3-cookiecutter-2.1.1 tranzystorek-io
@ 2022-07-21 14:14 ` tranzystorek-io
  6 siblings, 0 replies; 9+ messages in thread
From: tranzystorek-io @ 2022-07-21 14:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

There's a closed pull request on the void-packages repository

New package: python3-cookiecutter-2.1.1
https://github.com/void-linux/void-packages/pull/38136

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: New package: python3-cookiecutter-2.1.1
  2022-07-21 14:19 [PR PATCH] " tranzystorek-io
@ 2022-07-29 11:45 ` ahesford
  0 siblings, 0 replies; 9+ messages in thread
From: ahesford @ 2022-07-29 11:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/38176#issuecomment-1199183537

Comment:
Given the status of jinja2-time, I'm loath to package it. We can revisit this if cookiecutter  drops the dependency or jinja2-time appears to come back to life.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-07-29 11:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-18 20:26 [PR PATCH] New package: python3-jinja2-time tranzystorek-io
2022-07-18 20:27 ` [PR PATCH] [Updated] " tranzystorek-io
2022-07-18 21:54 ` [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0 tranzystorek-io
2022-07-18 23:08 ` tranzystorek-io
2022-07-20  6:34 ` tranzystorek-io
2022-07-21 14:09 ` [PR PATCH] [Updated] " tranzystorek-io
2022-07-21 14:13 ` New package: python3-cookiecutter-2.1.1 tranzystorek-io
2022-07-21 14:14 ` [PR PATCH] [Closed]: " tranzystorek-io
2022-07-21 14:19 [PR PATCH] " tranzystorek-io
2022-07-29 11:45 ` ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).