From patchwork Fri Sep 16 00:54:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luis Felipe X-Patchwork-Id: 42651 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 A037927BBEA; Fri, 16 Sep 2022 01:55:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED 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 E398D27BBE9 for ; Fri, 16 Sep 2022 01:55:15 +0100 (BST) Received: from localhost ([::1]:54934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYzdT-00053N-3F for patchwork@mira.cbaines.net; Thu, 15 Sep 2022 20:55:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYzdH-00052y-BR for guix-patches@gnu.org; Thu, 15 Sep 2022 20:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYzdG-0008NU-3U for guix-patches@gnu.org; Thu, 15 Sep 2022 20:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYzdF-0007AW-Uc for guix-patches@gnu.org; Thu, 15 Sep 2022 20:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57843] [PATCH] gnu: Add mazo. Resent-From: Luis Felipe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Sep 2022 00:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57843 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57843@debbugs.gnu.org X-Debbugs-Original-To: Luis Felipe via Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.166328969827540 (code B ref -1); Fri, 16 Sep 2022 00:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Sep 2022 00:54:58 +0000 Received: from localhost ([127.0.0.1]:59616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYzdB-0007A8-Rt for submit@debbugs.gnu.org; Thu, 15 Sep 2022 20:54:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:59534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYzd7-00079y-NR for submit@debbugs.gnu.org; Thu, 15 Sep 2022 20:54:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYzd7-00052b-Di for guix-patches@gnu.org; Thu, 15 Sep 2022 20:54:53 -0400 Received: from mail-4325.protonmail.ch ([185.70.43.25]:33021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYzd3-0008LM-Pk for guix-patches@gnu.org; Thu, 15 Sep 2022 20:54:52 -0400 Date: Fri, 16 Sep 2022 00:54:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1663289685; x=1663548885; bh=uZ6myJX5tbZowCDUBtq6saw5d5GuAyPD4OaMQKNQpCs=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=TQhl3jf9AijZ89QG+cSyESGT5JSpPyid6/IxQUbc83LPCtfb27/ri8TtctW8kTKq5 cYn9//7R2/sQJXb+8fhJmvnobFjgMFwSY7No1uGhCwzV++N6jOzsJNbuHjUmgiDNvi Nmmo3HPrkgx8xVwF6t1Ag9ueVfbrJSgVVnnP5GmX2xfUBDNWxiYYgyDT+gm5MZxXT0 uP+OmnduwYSyasfAs6dtgoLuJuSCxoXt9Z6gKszLa6ZJ2pjsJD6AXkxcoDgUjY18un YiY55jiE7EBqlNc76jxN2o5yBFK79JVSbkNT0ZsMIUsaC/58/fsFBxAK9fV50vSU68 4DeNsawn2rZxw== Message-ID: Feedback-ID: 24022468:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.25; envelope-from=luis.felipe.la@protonmail.com; helo=mail-4325.protonmail.ch X-Spam_score_int: 9 X-Spam_score: 0.9 X-Spam_bar: / X-Spam_report: (0.9 / 5.0 requ) AC_FROM_MANY_DOTS=2.999, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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" Reply-to: Luis Felipe X-ACL-Warn: , Luis Felipe via Guix-patches X-Patchwork-Original-From: Luis Felipe via Guix-patches via From: Luis Felipe X-getmail-retrieved-from-mailbox: Patches Hi, a new package here. --- Luis Felipe López Acevedo https://luis-felipe.gitlab.io/ From f954c9ac32338d04b0d9f944c1017c2ee55d62ba Mon Sep 17 00:00:00 2001 From: Luis Felipe Date: Thu, 15 Sep 2022 19:42:59 -0500 Subject: [PATCH] gnu: Add mazo. * gnu/packages/education.scm (mazo): New variable. --- gnu/packages/education.scm | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm index 980088a670..a2607087e5 100644 --- a/gnu/packages/education.scm +++ b/gnu/packages/education.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Prafulla Giri ;;; Copyright © 2021 Nicolò Balzarotti +;;; Copyright © 2022 Luis Felipe López Acevedo ;;; ;;; This file is part of GNU Guix. ;;; @@ -35,6 +36,7 @@ (define-module (gnu packages education) #:use-module (gnu packages compression) #:use-module (gnu packages curl) #:use-module (gnu packages databases) + #:use-module (gnu packages django) #:use-module (gnu packages flex) #:use-module (gnu packages fonts) #:use-module (gnu packages fontutils) @@ -45,6 +47,7 @@ (define-module (gnu packages education) #:use-module (gnu packages gnome) #:use-module (gnu packages golang) #:use-module (gnu packages gtk) + #:use-module (gnu packages gstreamer) #:use-module (gnu packages image) #:use-module (gnu packages javascript) #:use-module (gnu packages kde) @@ -1075,3 +1078,75 @@ (define-public exercism (description "Commandline client for exercism.io, a free service providing mentored learning for programming languages.") (license license:expat))) + +(define-public mazo + (package + (name "mazo") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/luis-felipe/mazo.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06246380i5rxycniwg5syn0aldd2zy10cbqk1lgyc0qfqb2lyrwj")))) + (build-system python-build-system) + (arguments + `(#:use-setuptools? #f + #:phases + (modify-phases %standard-phases + (delete 'build) + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (let* ((out (assoc-ref outputs "out")) + (home (string-append out "/tmp"))) + (add-installed-pythonpath inputs outputs) + (setenv "HOME" home) + (invoke "python3" "manage.py" "test"))))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (script (string-append bin "/mazo")) + (share (string-append out "/share")) + (help (string-append share "/help/C/mazo")) + (icons (string-append + share + "/icons/hicolor/scalable/apps")) + (apps (string-append share "/applications")) + (site (string-append + (site-packages inputs outputs) + "/mazo"))) + (mkdir-p help) + (mkdir-p bin) + (copy-file "mazo.py" script) + (chmod script #o555) + (install-file "icons/mazo.svg" icons) + (install-file "lugare.ulkeva.Mazo.desktop" apps) + (copy-recursively "help/C/mazo" help) + (copy-recursively "mazo" site))))))) + (native-inputs + (list python-django + python-django-cleanup + python-django-svg-image-form-field + python-pillow + python-pycairo)) + (propagated-inputs + (list gstreamer + gtk+ + python + python-django + python-django-cleanup + python-django-svg-image-form-field + python-pillow + python-pycairo + python-pygobject + yelp)) + (home-page "https://luis-felipe.gitlab.io/mazo/") + (synopsis "Memorize concepts using multimedia flash cards") + (description "Mazo is a learning application that helps you memorize +simple concepts using multimedia flash cards and spaced reviews.") + (license license:public-domain))) -- 2.37.2