From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 OO+eKio9tWPHjAAAbAwnHQ (envelope-from ) for ; Wed, 04 Jan 2023 09:47:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SNWUKio9tWM96gAAauVa8A (envelope-from ) for ; Wed, 04 Jan 2023 09:47:38 +0100 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 4C33F21025 for ; Wed, 4 Jan 2023 09:47:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCzQs-000748-QM; Wed, 04 Jan 2023 03:47:34 -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 1pCzQM-00071G-O0 for guix-patches@gnu.org; Wed, 04 Jan 2023 03:47:25 -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 1pCzQL-0007f4-T6 for guix-patches@gnu.org; Wed, 04 Jan 2023 03:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCzQL-0002iJ-OW for guix-patches@gnu.org; Wed, 04 Jan 2023 03:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60424] [PATCH] gnu: Add python-online-judge-tools Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Jan 2023 08:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60424 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: gemmaro Cc: 60424@debbugs.gnu.org Received: via spool by 60424-submit@debbugs.gnu.org id=B60424.167282198310378 (code B ref 60424); Wed, 04 Jan 2023 08:47:01 +0000 Received: (at 60424) by debbugs.gnu.org; 4 Jan 2023 08:46:23 +0000 Received: from localhost ([127.0.0.1]:47674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCzPi-0002hK-Ri for submit@debbugs.gnu.org; Wed, 04 Jan 2023 03:46:23 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:41812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCzPg-0002h5-9P for 60424@debbugs.gnu.org; Wed, 04 Jan 2023 03:46:21 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Nn39J00Wjz9sgw; Wed, 4 Jan 2023 09:46:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1672821972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OvAQfCvyGCCu6HYG2DBpd5HvECzS9rPqy4qLAEUtmg8=; b=It8eopwb6OkEV96HuvTY1nGbCRM6ZBfKT8IW9pFY2CVCCAj9Rb3zrEyldfnfnLhCKi27oZ NMhkgcgXY6PdhMrJxrfTblLnmf7cE6Aekl3Gw7CnO8VtwKyp9+QTiVB2/PHuf6wLOzsStw YCra5VV127p5YptbLG+flwr1TMZwMU4+T22VCCcVeYlK+ZQChY7pudrZTCV1Y29vKqsDWj v+H2UlEhgZYkUvtA5MuWkrmhc/x4+E0vzB+MtsUntW4Yx5NelmM2FWOKp+bvBxzG+m0zO/ nMGz19xpK2mw4FDJVYG4P/sGsvpyjB9lbgX7+b7NDVd2C8vpJqnUU0Ed1ZMuqQ== Date: Wed, 4 Jan 2023 09:46:06 +0100 From: Lars-Dominik Braun Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Nn39J00Wjz9sgw 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672822058; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=OvAQfCvyGCCu6HYG2DBpd5HvECzS9rPqy4qLAEUtmg8=; b=FxcvK5bHcaorRdiuNbtQ331f8uDnFB1i8bKUOjfcWyA3pOtpi9JINtyp/llYi3MMMgvHVu LxB0UBGvAKB0iP6DZGkJGLIOLLgvUbZZfFZtVPHYaJZ7QzOzUVagF+LOIL7Qmb8AIZycbP F18rFBdO9ANA/611j/mv7WD6KREcHJYK9ZfCgyQteGzBU6bJu5I0SbkDCu1wuXhhUy7BA8 /TeFUAoaxspybDkyqbKpnV/EDQd7UrFV4rKTWI5xT7OEm78CPTo3H9Ei/dzxCf4sCmY3WY su1m4YjPrx8Bwt1DhjrDXiDKbfJc3ZUSJtgMGTUYQuSu6nLxko9LqZ5ym5B7Bg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=It8eopwb; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672822058; a=rsa-sha256; cv=none; b=HjGWMBCLpmifOGTF3a1nZjmJGKtWQhrvOQJ01cdGvCw2cER7RWRWF6+hHdGJ1N9ZfisDAT kq7EqAD3KachdAJNRRQKZG/r3Ih5EzPVvPyho1wAyfllLssvkv3ezo7fWCstoiZpS9Pbyb ueRZVNM9dhjFn8Z3dhMWBX9o3nZWpzwc1CDqVkYRP65o+7nHWNq9cjI9mwzDU+rRZSUcu1 icjEyrYwLceOmHNOsOlR9sAoSHKcOchXMrfRxFmMk9y6H9q1TPbuEtRoNeMY9Lm42jvXDR WQ2GSmr4H9XNhva0lVnlclXQyNv3N4ooEJ+8I+f3KdZREO/hxtrvCqpnleQdUA== X-Spam-Score: 5.74 X-Migadu-Queue-Id: 4C33F21025 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=It8eopwb; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none) X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 5.74 X-TUID: 3Fq+xzxmFimx Hi, general notes: Please split your changes into one patch per package and add changelog-style commit messages. > + ;; NOTE: somehow it cannot be downloaded from PyPI Why did it fail? > + ;; NOTE: a lot of tests needs networking > + `(#:tests? #f)) Is it possible to disable just the ones that require networking instead of disabling all tests? > +(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))) It looks like this one provides a command-line tool called `oj`, so the package should be named `oj` or just `online-judge-tools` without python- prefix. Thanks, Lars