From patchwork Tue Jul 18 11:35:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Wurmus X-Patchwork-Id: 14813 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 A76A427BBEA; Tue, 18 Jul 2023 12:36:31 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham 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 83BAD27BBE2 for ; Tue, 18 Jul 2023 12:36:29 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLizt-0005xf-2M; Tue, 18 Jul 2023 07:36:05 -0400 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 1qLizr-0005xE-Gz for guix-patches@gnu.org; Tue, 18 Jul 2023 07:36:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qLizq-0003CR-JN for guix-patches@gnu.org; Tue, 18 Jul 2023 07:36:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLizq-0000tg-F7 for guix-patches@gnu.org; Tue, 18 Jul 2023 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64700] [PATCH] gnu: Add python-core-sr-ht. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2023 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64700 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64700@debbugs.gnu.org Cc: Ricardo Wurmus X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16896801553432 (code B ref -1); Tue, 18 Jul 2023 11:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jul 2023 11:35:55 +0000 Received: from localhost ([127.0.0.1]:51753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLizi-0000tI-OJ for submit@debbugs.gnu.org; Tue, 18 Jul 2023 07:35:55 -0400 Received: from lists.gnu.org ([2001:470:142::17]:39478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLizb-0000sl-0M for submit@debbugs.gnu.org; Tue, 18 Jul 2023 07:35:53 -0400 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 1qLizV-0005Rk-CG for guix-patches@gnu.org; Tue, 18 Jul 2023 07:35:41 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLizQ-00038J-0n for guix-patches@gnu.org; Tue, 18 Jul 2023 07:35:41 -0400 Delivered-To: rekado@elephly.net ARC-Seal: i=1; a=rsa-sha256; t=1689680129; cv=none; d=zohomail.com; s=zohoarc; b=KQcnD9NfvmkPqKMoxc3KrN0ZOUzmwa2wWZXUNe76Jln6OoculCx5Wz+VaSOKvCloRd509CB6oeWotKyZvfpgwWBEPxSdRAr0dDAUbJJfvAmn8mGXq+GykIu7R2Qy8kDKF1ZeCFv22MDAoUpCzV8jHOPnWYnnmVhftVqf2qI8B1k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1689680129; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=VY+GpfgeTc7QjV5bSNgRXfmP0KTlISACfQl9jTOw0IY=; b=FAthzAAQTgm0pcVMjtq8x1ErNaUVHrIL6kRjslyOLLsHsSg8MRr8sGh/lwvIBz2jKaLgodhSmVxMA3Tkj3JoNIUBuqyLRYnkvj6YsTIGwAct8q7ghUSeZ78R5YYVINS478e/Iij7jJfcF+UHf/TJKYh48f038qdJivBeecuGWGE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1689680129; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=VY+GpfgeTc7QjV5bSNgRXfmP0KTlISACfQl9jTOw0IY=; b=KRSG5XXCtO2MmTTl5QJact7LEmFPrqnOxiy51B1p5/jm971VDu4qGwVgAzrjrgPZ hYGtIPMX+u8eVVYiMysRZMVMIo7bK9REUCvNTEu0I3AYrif0TjhL+nt4gL/BGRnSDbl mx6Adzkl+596X0J5mXokoGzvltmYsKliqyWPJ644= Received: from localhost (102-109-142-46.pool.kielnet.net [46.142.109.102]) by mx.zohomail.com with SMTPS id 1689680126944657.4398392214271; Tue, 18 Jul 2023 04:35:26 -0700 (PDT) From: Ricardo Wurmus Date: Tue, 18 Jul 2023 13:35:16 +0200 Message-Id: <55c4f6aadd19839a82c6c5f38084377af8896221.1689680115.git.rekado@elephly.net> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.50; envelope-from=rekado@elephly.net; helo=sender4-of-o50.zoho.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 * gnu/packages/sourcehut.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/sourcehut.scm | 81 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 gnu/packages/sourcehut.scm base-commit: 3a3752400d7a70a295a27b66f29457aeeaa2cf27 diff --git a/gnu/local.mk b/gnu/local.mk index 2767f5290b..3196f0241c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -580,6 +580,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/smalltalk.scm \ %D%/packages/sml.scm \ %D%/packages/solidity.scm \ + %D%/packages/sourcehut.scm \ %D%/packages/speech.scm \ %D%/packages/sphinx.scm \ %D%/packages/spice.scm \ diff --git a/gnu/packages/sourcehut.scm b/gnu/packages/sourcehut.scm new file mode 100644 index 0000000000..382c357d78 --- /dev/null +++ b/gnu/packages/sourcehut.scm @@ -0,0 +1,81 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Ricardo Wurmus +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages sourcehut) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) + #:use-module (guix packages) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix build-system pyproject) + #:use-module (gnu packages check) + #:use-module (gnu packages databases) + #:use-module (gnu packages markup) + #:use-module (gnu packages monitoring) + #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) + #:use-module (gnu packages python-crypto) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages)) + +(define-public python-core-sr-ht + (package + (name "python-core-sr-ht") + (version "0.69.15") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~sircmpwn/core.sr.ht") + (commit version) + (recursive? #true))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "00d633lmdiqamyv24szmd441dhkjh1n1qkvf47vn57da0z1rxp2g")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #false ;there are none + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ (setenv "PKGVER" #$version)))))) + (propagated-inputs + (list python-alembic + python-beautifulsoup4 + python-bleach + python-celery + python-cryptography + python-flask + python-humanize + python-markdown + python-mistletoe + python-prometheus-client + python-psycopg2 + python-pygments + python-redis + python-requests + python-sqlalchemy + python-sqlalchemy-utils)) + (home-page "https://git.sr.ht/~sircmpwn/core.sr.ht") + (synopsis "Shared code for all sourcehut projects") + (description + "This package contains code shared among all sr.ht projects.") + (license license:bsd-3)))