From patchwork Sat Feb 11 14:51:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 9856 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 175BA16600; Sat, 11 Feb 2023 15:01:38 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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 5F035165FF for ; Sat, 11 Feb 2023 15:01:36 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQrNF-00016I-Q8; Sat, 11 Feb 2023 10:01:09 -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 1pQrN9-00015d-6E for guix-patches@gnu.org; Sat, 11 Feb 2023 10:01:06 -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 1pQrN8-0002oZ-M6 for guix-patches@gnu.org; Sat, 11 Feb 2023 10:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQrN8-0001Gb-Hp for guix-patches@gnu.org; Sat, 11 Feb 2023 10:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61433] [PATCH 2/2] gnu: Add python-clorm. References: In-Reply-To: Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Feb 2023 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61433 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61433@debbugs.gnu.org Received: via spool by 61433-submit@debbugs.gnu.org id=B61433.16761276544839 (code B ref 61433); Sat, 11 Feb 2023 15:01:02 +0000 Received: (at 61433) by debbugs.gnu.org; 11 Feb 2023 15:00:54 +0000 Received: from localhost ([127.0.0.1]:42923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQrN0-0001Fu-1c for submit@debbugs.gnu.org; Sat, 11 Feb 2023 10:00:54 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQrMw-0001FV-VN for 61433@debbugs.gnu.org; Sat, 11 Feb 2023 10:00:53 -0500 Received: by mail-ed1-f66.google.com with SMTP id bt8so1874277edb.12 for <61433@debbugs.gnu.org>; Sat, 11 Feb 2023 07:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:to:subject:date:from:from:to:cc:subject :date:message-id:reply-to; bh=yQk4Um4k+cR/2e+ivxV0CUXAo6tRFxy4RD+cOmEHgEQ=; b=OeDui8hOmM2DkqOeOdE9ht55cHobm/7pce5jOX3qHVM2FkNdBaCti5HcOLd9oBZGK2 3QlMRJIn/KtqvVERqvg66pRd1dBtMVaNN/XRavlkb0h3ioJEiOYTI6svUL80N/iPbUzY kBSY597r3NRmx3t5QOCF9mAtv9VGo2ZqvpjIvrz8Z2u8kcSlC5MN5aSynm27jx6t6v/m rD+n5E1TSwgsbhR4m7JlBaPK1mntLV12vA59by84nqVgDkv56OJ/M/xN1rHpxSQErn7M dUtHprkjVF4raqcXyd+6GCyk2hUkqcIKMAgWdyfFUWBpRMozjgO7f31px1KRFltXkbz5 9GRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:to:subject:date:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yQk4Um4k+cR/2e+ivxV0CUXAo6tRFxy4RD+cOmEHgEQ=; b=B9Jsb5Zqv3hVAi20pr+iMdRcbuTt/ON3EVH27/vSq6etjq7VRCzIyrh7DIQjLj7q+c d54bTbv3sMjyPzqMfheHOkrVVzBusRzm7GltXIZAZp27PKQDCXAykSKdI3rdXd75PcIC DNkrMm0ZlJcmWNqhe4n0LqJyegyo1CwIav5kGH6mLAkK1k9p4RbpaJh5k/BgBJsNfXqg HNH+DxcO7cwkTMAqVR5GpG/CTLPCh/j8/WkMoUdusOuv8fbh4hclZhehlCDsFVNu3SUx YxIvU/E6cAnNgX7nor3MfdTQyZxCUQCtrOeX9vtUMH/Y0+VBdeSoUfG36oKTMhdx3iqs fDow== X-Gm-Message-State: AO0yUKX+D1CSpdr/sEo8ARGiazMGYL+cT/eHQvPgVQs/Yk93AS0LhHdv 9S4WCZ7ABaLrICZQyeI17hgsRhayjdBhAQ== X-Google-Smtp-Source: AK7set+en7i7x8ZyrnR+E3pXQ3mhtQCJqYKLoI0HcsgoG3JVJ5izOz2qwLqHrqUVH8flOdAasBFbew== X-Received: by 2002:a50:d49b:0:b0:4ab:15fb:8632 with SMTP id s27-20020a50d49b000000b004ab15fb8632mr11975873edi.29.1676127645452; Sat, 11 Feb 2023 07:00:45 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id i9-20020a50d749000000b00495f4535a33sm3842164edj.74.2023.02.11.07.00.44 for <61433@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 07:00:45 -0800 (PST) From: Liliana Marie Prikler Date: Sat, 11 Feb 2023 15:51:56 +0100 Message-ID: <959651a5d596045bbff749f6bb125772834c763c.camel@gmail.com> MIME-Version: 1.0 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/maths.scm (python-clorm): New variable. --- gnu/packages/maths.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 61122f09af..80b8b26b90 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2737,6 +2737,41 @@ (define-public python-clingo making it so that you can write @acronym{ASPs, Answer Set Programs} through Python code."))) +(define-public python-clorm + (package + (name "python-clorm") + (version "1.4.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/potassco/clorm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0jx99y71mrgdicn1da5dwz5nzgvvpabrikff783sg4shbv2cf0b5")))) + (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'check 'fix-breaking-tests + (lambda _ + ;; noclingo tests rely on this being set + (setenv "CLORM_NOCLINGO" "1") + (delete-file "tests/test_mypy_query.py") + (substitute* "tests/test_clingo.py" + (("self\\.assertTrue\\(os_called\\)" all) + (string-append "# " all)))))))) + (propagated-inputs (list python-clingo)) + (native-inputs (list python-typing-extensions)) + (home-page "https://potassco.org") + (synopsis "Object relational mapping to clingo") + (description "@acronym{Clorm, Clingo ORM} provides an @acronym{ORM, +Object Relational Mapping} interface to the @acronym{ASP, answer set +programming} solver clingo. Its goal is to make integration of clingo +into Python programs easier.") + (license license:expat))) + (define-public python-telingo (package (name "python-telingo")