GNU bug report logs - #60424
[PATCH] gnu: Add python-online-judge-tools

Previous Next

Package: guix-patches;

Reported by: gemmaro <gemmaro.dev <at> gmail.com>

Date: Fri, 30 Dec 2022 07:04:07 UTC

Severity: normal

Tags: patch

Done: gemmaro <gemmaro.dev <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 60424 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: gemmaro <gemmaro.dev <at> gmail.com>
Cc: 60424 <at> debbugs.gnu.org
Subject: Re: [bug#60424] [PATCH] gnu: Add python-online-judge-tools
Date: Wed, 4 Jan 2023 09:46:06 +0100
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





This bug report was last modified 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.