Github messages for voidlinux
 help / color / mirror / Atom feed
From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0
Date: Mon, 18 Jul 2022 23:54:22 +0200	[thread overview]
Message-ID: <20220718215422.PuQcfBgQ9umwf3rN4_A6xsqmbacgvkHhFKIqHbYM1dc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38136@inbox.vuxu.org>

[-- 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
+}

  parent reply	other threads:[~2022-07-18 21:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-07-18 23:08 ` [PR PATCH] [Updated] New package: python3-jinja2-time-0.2.0 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220718215422.PuQcfBgQ9umwf3rN4_A6xsqmbacgvkHhFKIqHbYM1dc@z \
    --to=tranzystorek-io@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).