GNU bug report logs - #61089
[PATCH] gnu: Add staticsite.

Previous Next

Package: guix-patches;

Reported by: Vagrant Cascadian <vagrant <at> debian.org>

Date: Fri, 27 Jan 2023 01:32:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61089 in the body.
You can then email your comments to 61089 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#61089; Package guix-patches. (Fri, 27 Jan 2023 01:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vagrant Cascadian <vagrant <at> debian.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 27 Jan 2023 01:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add staticsite.
Date: Thu, 26 Jan 2023 17:31:19 -0800
[0001-gnu-Add-staticsite.patch (text/x-diff, inline)]
From 04619d89e5f3a75f108c082dcd1c390d0bd3f82f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant <at> debian.org>
Date: Thu, 26 Jan 2023 15:43:17 -0800
Subject: [PATCH] gnu: Add staticsite.

* gnu/packages/python-xyz.scm (staticsite): New variable.
---
 gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b14c4ff0f3..a5be587603 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31744,6 +31744,57 @@ (define-public shrinkwrap
 path.")
     (license license:expat)))
 
+(define-public staticsite
+  (package
+    (name "staticsite")
+    (version "2.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/spanezz/staticsite")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1rhr25xydvnlrrcz389j3f6nknmczm5x11cagrji1qww70piwy08"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'use-themes-in-output
+                          (lambda* (#:key outputs #:allow-other-keys)
+                            (let ((out (assoc-ref outputs "out")))
+                              (substitute* "staticsite/global_settings.py"
+                                (("/usr/share/staticsite")
+                                 out)))))
+                        (add-after 'install 'install-themes
+                          (lambda* (#:key outputs #:allow-other-keys)
+                            (let ((themedir (string-append (assoc-ref outputs
+                                                                      "out")
+                                                           "/themes")))
+                              (copy-recursively "themes" themedir)))))))
+    (native-inputs (list python-pyinotify
+                         python-markdown
+                         python-docutils
+                         python-jinja2
+                         python-pytz
+                         python-dateutil
+                         python-pyyaml
+                         python-pillow
+                         python-slugify
+                         python-ruamel.yaml
+                         tzdata-for-tests
+                         python-tornado
+                         perl-image-exiftool))
+    (home-page "https://github.com/spanezz/staticsite")
+    (synopsis "Static site generator")
+    (description "Static site generator based on markdown and jinja2.
+Features:
+ - themable
+ - free content structure
+ - hugo-style archetypes and front matter
+ - live preview server")
+    (license (list license:gpl3+ license:expat))))
+
 (define-public python-pymonad
   (package
     (name "python-pymonad")
-- 
2.39.0

[signature.asc (application/pgp-signature, inline)]

Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Thu, 23 Feb 2023 14:39:01 GMT) Full text and rfc822 format available.

Notification sent to Vagrant Cascadian <vagrant <at> debian.org>:
bug acknowledged by developer. (Thu, 23 Feb 2023 14:39:02 GMT) Full text and rfc822 format available.

Message #10 received at 61089-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Vagrant Cascadian <vagrant <at> debian.org>
Cc: 61089-done <at> debbugs.gnu.org
Subject: Re: [bug#61089] [PATCH] gnu: Add staticsite.
Date: Thu, 23 Feb 2023 15:37:48 +0100
Hello,

Vagrant Cascadian <vagrant <at> debian.org> writes:

> Subject: [PATCH] gnu: Add staticsite.
>
> * gnu/packages/python-xyz.scm (staticsite): New variable.

Applied (with G-exps, and inputs ordered alphabetically). Thank you.

Regards,
-- 
Nicolas Goaziou




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 24 Mar 2023 11:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.