From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 30 02:03:43 2022 Received: (at submit) by debbugs.gnu.org; 30 Dec 2022 07:03:43 +0000 Received: from localhost ([127.0.0.1]:33447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pB9Qc-0006C3-Gv for submit@debbugs.gnu.org; Fri, 30 Dec 2022 02:03:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:43164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pB7ox-0003JP-PY for submit@debbugs.gnu.org; Fri, 30 Dec 2022 00:20:44 -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 1pB7ox-0005Om-FT for guix-patches@gnu.org; Fri, 30 Dec 2022 00:20:43 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pB7ov-0003Xd-KS for guix-patches@gnu.org; Fri, 30 Dec 2022 00:20:43 -0500 Received: by mail-pl1-x632.google.com with SMTP id s7so20881047plk.5 for ; Thu, 29 Dec 2022 21:20:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wRVhTnC6CXVWVEhyX929kHSM68zyMew2GM7xIu5xyIE=; b=Za+HQQM9I11SYgEyZ1w/qcEJqqu+2KcdLlVLZ+mU8DObpxfeVeMo8EH0WCEDkpesAw Vrc/e1tsZpny4y0Gb0dsuS4FJoFqBb80Z1taySBD8YBBEXYIhSMeAABvA+yo4q9x0ltt 6en3hnfzgM3sxaHBQ+J/a1WW8N8nCE0XzqkjH0EGAcvbuNQwQwiASIklSwvELouHkoHm miSbDjy3EthkpFtO9z4JnyuqoOUkLoMzCqxOm+cgv7zkRQ98sE0hMRLs4TCLFpfg/hd2 GaZHobBQ/VKW4pB/oBM+aJ5w+XBhGTrCoSrZJePhFTdSjPlMuhSLIf7jjfzl+3ReU9YQ qPPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wRVhTnC6CXVWVEhyX929kHSM68zyMew2GM7xIu5xyIE=; b=esAdDXKgUFP9kP2OuBsQL+aOEsfKbIzR1USOE5juKZZumUV4v6F2Tx6kWijxWHupfa mRaURC+xiByEGNbOmKUY3Q5Lo4TCe3bqbIWrXKfuiFKYzLR02IhXNYSyGkpEVj8GBPx+ Em3fr5aSVismeA8ozngngy1XIGxasvPRm2V1EuAWFGM8nJJwo1waaKcBKwr5avadqJ+n 7AXB9k/zjo6nVWErS5IiH9GfNkSmeGBW+rg3SHchU+i8QroxUzzo+/1Lepe3aTCxQotx QvMGV2yKNFr3GEWe48pBkjbO4q54XgNtwmMDPUOrFWrKQPfIjgv9p3EgAQw0v6bEnMxE shJQ== X-Gm-Message-State: AFqh2kqJBDKGIqrD1fttiMvEaicu36yBitDZZVDWNZJxuP897+h0oOph 6ilCnYAg0mvYyXLM41wqJSkuBAWe018Niw== X-Google-Smtp-Source: AMrXdXvm8qQoLTIsramsLixjg4ooSghrOR5jzGvgGgAeEX5X11LwbhfslDPLbykTkooX3G2ubgfU7A== X-Received: by 2002:a17:902:9a93:b0:192:9e13:a4ba with SMTP id w19-20020a1709029a9300b001929e13a4bamr5353015plp.34.1672377639651; Thu, 29 Dec 2022 21:20:39 -0800 (PST) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id d6-20020a170902654600b00189422a6b8bsm13800831pln.91.2022.12.29.21.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 21:20:39 -0800 (PST) From: gemmaro To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-online-judge-tools Date: Fri, 30 Dec 2022 14:20:19 +0900 Message-Id: X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Debbugs-Cc: jgart@dismail.de X-Debbugs-Cc: lars@6xq.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=gemmaro.dev@gmail.com; helo=mail-pl1-x632.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 30 Dec 2022 02:03:35 -0500 Cc: gemmaro X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --- gnu/packages/python-xyz.scm | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2b28e8bd53..43e98ed9dc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -132,6 +132,7 @@ ;;; Copyright © 2022 Garek Dyszel ;;; Copyright © 2022 Baptiste Strazzulla ;;; Copyright © 2022 Nicolas Graves +;;; Copyright © 2022 gemmaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -22662,6 +22663,70 @@ (define-public python-onetimepass time-based (TOTP) passwords.") (license license:expat))) +(define-public python-online-judge-api-client + (package + (name "python-online-judge-api-client") + (version "10.10.1") + ;; NOTE: somehow it cannot be downloaded from PyPI + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/online-judge-tools/api-client") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0yjqhh44va5nawd9rpqcjyf0g7rjlkvn7s90fmwmwjyqvy6lhjiz")))) + (build-system python-build-system) + (arguments + ;; NOTE: a lot of tests needs networking + `(#:tests? #f)) + (propagated-inputs (list python-appdirs + python-beautifulsoup4 + python-colorlog + python-lxml + python-requests + python-toml + python-jsonschema)) + (home-page "https://github.com/online-judge-tools/api-client") + (synopsis "API client for various online judges") + (description + "This is an API client for various online judges, used as the backend +library of @code{oj} command. You can use the Python +library (@code{onlinejudge} module) and the command-line +interface (@command{oj-api} command) which talks JSON compatible with +jmerle/competitive-companion.") + (license license:expat))) + +(define-public python-online-judge-tools + (package + (name "python-online-judge-tools") + (version "11.5.1") + ;; NOTE: somehow it cannot be downloaded from PyPI + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/online-judge-tools/oj") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0zkzmmjgjb6lyrzq1ip54cpnp7al9a7mcyjyi5vx58bvnx3q0c6m")))) + (build-system python-build-system) + (arguments + ;; NOTE: a lot of tests needs networking + `(#:tests? #f)) + (propagated-inputs (list python-online-judge-api-client python-colorama + python-requests)) + (home-page "https://github.com/online-judge-tools/oj") + (synopsis "Command to help solving problems on various online judges") + (description + "@command{oj} is a command line tool to help solving problems on +various online judges. This command automates downloading sample +cases, generating additional test cases, testing for your code, and +submitting it.") + (license license:expat))) + (define-public python-parso (package (name "python-parso") base-commit: a09f28758af24e947f9daaf549740e52af111941 -- 2.38.1