From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MDczFbEQImN8OwEAbAwnHQ (envelope-from ) for ; Wed, 14 Sep 2022 19:34:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kEstFbEQImNVMgEA9RJhRA (envelope-from ) for ; Wed, 14 Sep 2022 19:34:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F2A8E39818 for ; Wed, 14 Sep 2022 19:34:40 +0200 (CEST) Received: from localhost ([::1]:33316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYWHX-0003AT-TL for larch@yhetil.org; Wed, 14 Sep 2022 13:34:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYVj4-0000CM-Pa for guix-patches@gnu.org; Wed, 14 Sep 2022 12:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38999) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYVj4-0003yz-Hf for guix-patches@gnu.org; Wed, 14 Sep 2022 12:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYVj4-0005xt-27 for guix-patches@gnu.org; Wed, 14 Sep 2022 12:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57806] [PATCH 0/2] Add cl-njson and cl-nactivitypub. Resent-From: Artyom Bologov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Sep 2022 16:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57806 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57806@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166317470522866 (code B ref -1); Wed, 14 Sep 2022 16:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Sep 2022 16:58:25 +0000 Received: from localhost ([127.0.0.1]:55927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYViQ-0005wg-Fn for submit@debbugs.gnu.org; Wed, 14 Sep 2022 12:58:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:34054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYTIG-0003aW-US for submit@debbugs.gnu.org; Wed, 14 Sep 2022 10:23:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYTIF-0007MQ-F3 for guix-patches@gnu.org; Wed, 14 Sep 2022 10:23:12 -0400 Received: from mta-10-4.privateemail.com ([198.54.122.149]:3992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYTID-00030m-8D for guix-patches@gnu.org; Wed, 14 Sep 2022 10:23:11 -0400 Received: from mta-10.privateemail.com (localhost [127.0.0.1]) by mta-10.privateemail.com (Postfix) with ESMTP id A60F8180009F for ; Wed, 14 Sep 2022 10:23:03 -0400 (EDT) Received: from paranoidal (89-39-107-185.hosted-by-worldstream.net [89.39.107.185]) by mta-10.privateemail.com (Postfix) with ESMTPA id 77C9318000A4 for ; Wed, 14 Sep 2022 10:23:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aartaka.me; s=default; t=1663165383; bh=TSapAHsMYFeJRsuXGwJkK6zvyPPXepIlHD6KTWRuQrs=; h=From:To:Subject:Date:From; b=FDcY0fcV9ngCzC55bB0KB/5JRJs9gALBvNJUB2hgIDw+fA41nilu8uJRrYW6BS8i+ 2c6OdpRqqkjweI8W+9yB25foNxYPCCWtXPCVlrbm4YjMTJRGUVrT8sT377Y1E4/NzU dFUwT1mV8XZCPAQZni8VE54jP93OfmlIelzxmbjVLw0oR7H2MGcMzRirLF4Yfoej3/ Dh2R5Hb2pFNpZVCmlQx+e6YnP8ulw2t9Ovgt6Ja4lDpXCd6TQWNQgNtTp6Y+AKvqSh 0WyM7B5z1IHwgXKALHnLECHOz7otZHcc611/kjzogfes6g2FSjY70h1A43ve936e83 j+kU9cyoCIgLA== User-agent: mu4e 1.8.9; emacs 28.1 From: Artyom Bologov Date: Wed, 14 Sep 2022 18:23:44 +0400 Message-ID: <87czbyuj67.fsf@aartaka.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.122.149; envelope-from=mail@aartaka.me; helo=MTA-10-4.privateemail.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, 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-Mailman-Approved-At: Wed, 14 Sep 2022 12:58:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 14 Sep 2022 13:32:54 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663176881; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=keEg0LTIb7DcHBzWXcu1Co6vhwSINDI5vrF2y7WqPf0=; b=UhPFjmQCd3XqKRV9VN+wzRo9qLDTcj/FosDWJp67icos/vi/4Yvl/KxG3K8WKiTYpESGhd rlbONNY8MfHAu/sJKvdn/v63DKh0dPm3OdT+P4AAy6OwQBNSbFUOCJn6pEVhz7YEm/qsUu WKrbQcdwqVe8hnSZZcAQXUdH1ibn04KZWMte25vOLogufN9HZ+p1Yi/cD3rQzIGbiDvMJp fUXdU1qL2khpjupuZEtyUXVxBvLkfGHtv51JfHYccYCGYfRZrJDeL0kC1v2JU0GmrKt/78 bTPD89wi89SyBoF8y9B60fyNkUmBYdbH8+oQqstfAtvsIm/IHTX0HVYNA8w/dA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663176881; a=rsa-sha256; cv=none; b=aeoD6JvYWp0VBGZ2W+cxTfRSx/bCD/Qo3TFFYphLhPYHqNzQQmoE2qurkffdzbL+3mWGW4 M66eSOahgJrONhIt0rIyM2bnLqFUSERWKwBbxsmolp4FT8T/p8teV9MZHkUi8I+VXv2Z3n +ZoL8ALb/YVyRHGaiGEiDBBnsNmY69jXaYOYn8QxgWrkhV28+PA8ZTCmjY2tezw2jJi8Ur xb+J6SyBy3sgaNJHxoGUkJSGjro9hQXzeR8lD1B0bCtiBulkjgvEC4WUfhwIwhvWkD1WOc ds3VXpwUK4SkbFelanbTXrX/PQdBB0pakNz5dNra5kI2HZCSv00bn1ZxgPDpFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=aartaka.me header.s=default header.b=FDcY0fcV; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=aartaka.me header.s=default header.b=FDcY0fcV; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F2A8E39818 X-Spam-Score: 0.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6hLWiQ+Cx0wr --=-=-= Content-Type: text/plain Hello, This adds cl-nactivitypub and it's dependency cl-njson. Artyom Bologov (2): gnu: Add cl-njson. gnu: Add cl-nactivitypub. gnu/packages/lisp-xyz.scm | 100 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) -- 2.37.3 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-cl-njson.patch Content-Transfer-Encoding: quoted-printable Content-Description: Text Data >From 79672a5dae731ce806761c4c4dab59b33f3abc3a Mon Sep 17 00:00:00 2001 From: aartaka Date: Wed, 14 Sep 2022 18:05:00 +0400 Subject: [PATCH 1/2] gnu: Add cl-njson. * gnu/packages/lisp-xyz.scm (cl-nsjon, ecl-njson, sbcl-njson): New variable= s. --- gnu/packages/lisp-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 033394eb8a..a109d7a15d 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -35,6 +35,7 @@ ;;; Copyright =C2=A9 2022 Paul A. Patience ;;; Copyright =C2=A9 2022 Thomas Albers Raviola ;;; Copyright =C2=A9 2022 Arun Isaac +;;; Copyright =C2=A9 2022 Artyom Bologov ;;; ;;; This file is part of GNU Guix. ;;; @@ -22032,6 +22033,56 @@ (define-public cl-nkeymaps (define-public ecl-nkeymaps (sbcl-package->ecl-package sbcl-nkeymaps)) =20 +(define-public sbcl-njson + (package + (name "sbcl-njson") + (version "0.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/atlas-engineer/njson") + (commit version))) + (file-name (git-file-name "cl-njson" version)) + (sha256 + (base32 + "0lv3q1841s4avii1jp89r91jq21sids2ycpy2id0kzhrljzhmy6j")))) + (build-system asdf-build-system/sbcl) + (inputs (list sbcl-cl-json)) + (native-inputs (list sbcl-lisp-unit2)) + (home-page "https://github.com/atlas-engineer/njson") + (synopsis + "JSON (JavaScript Object Notation) handling framework for Common Lisp= .") + (description + "NJSON aims to make it convenient for one to decode, encode, +and process JSON data, in the minimum keystrokes/minutes possible. + +NJSON is parser-independent, with existing Common Lisp JSON parsers being +loadable as additional system. @code{cl-json} is included by default, tho= ugh. +Conveniences that NJSON provides are: + +@itemize + +@item @code{encode} and @code{decode} as single entry points for JSON read= ing +and writing, be it from streams/string/files, or from those. + +@item @code{jget}, @code{jrem}, @code{jtruep}, and their aliases to +access/delete the decoded objects' properties and check their truth value +without the need to worry about the low-level details of how these values = are +decoded. + +@item @code{jif}, @code{jwhen}, @code{jor}, @code{jand}, and other macros +mimicking Lisp ones, while using truth values of JSON-decoded data. + +@end itemize +") + (license license:bsd-3))) + +(define-public cl-njson + (sbcl-package->cl-source-package sbcl-njson)) + +(define-public ecl-njson + (sbcl-package->ecl-package sbcl-njson)) + (define-public sbcl-utils-kt (let ((commit "4adfe2889036ab5ffdd3cc2182ca2cc692bf11ff")) (package --=20 2.37.3 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-Add-cl-nactivitypub.patch Content-Description: Text Data >From 98554a68ccace9feb3bccdba36ab31d388b77fae Mon Sep 17 00:00:00 2001 From: aartaka Date: Wed, 14 Sep 2022 18:07:07 +0400 Subject: [PATCH 2/2] gnu: Add cl-nactivitypub. * gnu/packages/lisp-xyz.scm (cl-nactivitypub, ecl-nactivitypub, sbcl-nactivitypub): New variables. --- gnu/packages/lisp-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index a109d7a15d..acb9839e06 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -22083,6 +22083,55 @@ (define-public cl-njson (define-public ecl-njson (sbcl-package->ecl-package sbcl-njson)) +(define-public sbcl-nactivitypub + (package + (name "sbcl-nactivitypub") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/atlas-engineer/nactivitypub") + (commit version))) + (file-name (git-file-name "cl-nactivitypub" version)) + (sha256 + (base32 + "07n8a9cfzc96kwsb6z4v5ns09ad2qyq45bjb779azcs7ds144a6r")))) + (build-system asdf-build-system/sbcl) + (inputs (list sbcl-njson + sbcl-serapeum + sbcl-cl-str + sbcl-local-time + sbcl-lparallel + sbcl-dexador + sbcl-quri)) + (home-page "https://github.com/atlas-engineer/nactivitypub") + (synopsis + "Common Lisp Implementation of ActivityPub and ActivityStreams standards.") + (description + "Features: +@itemize + +@item Parsing and un-parsing ActivityStreams JSON-LD objects to/from CLOS +objects with convenient accessors on those. + +@item Sending and fetching ActivityStreams objects to/from the +ActivityStreams-enabled HTTP(S) URLs. + +@item Semantic info extraction with methods like @code{name*}, @code{url*}, +@code{author*}, and @code{published*}. + +@item No reliance on JSON parser. @code{njson} is used for parser-independent +JSON handling. Load the parser backend you prefer! + +@end itemize") + (license license:bsd-3))) + +(define-public cl-nactivitypub + (sbcl-package->cl-source-package sbcl-nactivitypub)) + +(define-public ecl-nactivitypub + (sbcl-package->ecl-package sbcl-nactivitypub)) + (define-public sbcl-utils-kt (let ((commit "4adfe2889036ab5ffdd3cc2182ca2cc692bf11ff")) (package -- 2.37.3 --=-=-=--