From patchwork Fri Jan 27 01:31:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 9439 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 757AF27BBE9; Fri, 27 Jan 2023 01:32:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 21EF327BBEB for ; Fri, 27 Jan 2023 01:32:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLDb3-0003Gk-DC; Thu, 26 Jan 2023 20:32:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLDb1-0003GV-6m for guix-patches@gnu.org; Thu, 26 Jan 2023 20:32:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLDb0-0006JM-V3 for guix-patches@gnu.org; Thu, 26 Jan 2023 20:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLDb0-0004IL-Fg for guix-patches@gnu.org; Thu, 26 Jan 2023 20:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61089] [PATCH] gnu: Add staticsite. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 Jan 2023 01:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61089 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61089@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167478309916478 (code B ref -1); Fri, 27 Jan 2023 01:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jan 2023 01:31:39 +0000 Received: from localhost ([127.0.0.1]:36498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLDad-0004Hh-2X for submit@debbugs.gnu.org; Thu, 26 Jan 2023 20:31:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:49022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLDaa-0004HZ-PH for submit@debbugs.gnu.org; Thu, 26 Jan 2023 20:31:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLDaa-0003Dx-4h for guix-patches@gnu.org; Thu, 26 Jan 2023 20:31:36 -0500 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLDaW-0006GX-EO for guix-patches@gnu.org; Thu, 26 Jan 2023 20:31:35 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id B2B241AC9A for ; Thu, 26 Jan 2023 17:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1674783083; bh=MbHNwgAnqDyO5ukbou5dFCtHSCKmzI+Hr4Y04J7w5/M=; h=From:To:Subject:Date:From; b=ktdJwvvObq9zL9Y54YnsWC0N8bP/F5ZalH8V2D5yC4LcAWELWoZr1RuQtFVDeyHrC 9GMpQcDLaRj2wxMcD8HmjSHHXdvpit9FCPPlbWoi01WI7/WJEh1FkqGUyTLdVY4+lM oJ4yF4nNtTU7VQxOHAsUbU20RVncS1VWkW9wG1WYBcRmSVKIf6xQW2uRM/XipBU8Kd kwXgKMleT+WQeoE95/3R4DO8GRwanMUNXPngoohlQ+i0cY3U6lITBOvHB4AAX14KxR b0d0HgADNkR88ydqAy9LkutupJ6VXzJMDW4OkouP4hdTA74hNnHqnoH59Vd/TVZnpg 1f3/ZwlNtmF/g== From: Vagrant Cascadian Date: Thu, 26 Jan 2023 17:31:19 -0800 Message-ID: <871qng69w8.fsf@contorta> MIME-Version: 1.0 Received-SPF: none client-ip=2600:3c01:e000:267:0:a171:de7:c; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 04619d89e5f3a75f108c082dcd1c390d0bd3f82f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian 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