diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 17:11:02 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-06 22:08:09 +0100 |
| commit | ab6f15041d3054d126f956c0554270ebda295c8e (patch) | |
| tree | be47595666af269194c38868c1e1a5466bed0c83 /gnu/packages/python-xyz.scm | |
| parent | 5d3f193208441e688dfeaa9d8fffc57892d3b3c0 (diff) | |
gnu: online-judge-tools: Switch to pyproject.
* gnu/packages/python-xyz.scm (online-judge-tools):
[build-system]: Switch to pyproject-build-system.
[arguments]: Replace <#:phases> with <#:test-flags>.
[native-inputs]: Add python-setuptools-next.
Change-Id: I4590ac8211c9d18b1c71be06fe2cf17cb285bbc4
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fa12264e7b..8d58810ac8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29042,23 +29042,23 @@ jmerle/competitive-companion.") (version "11.5.1") ;; Source distributions are not uploaded to PyPI. ;; https://pypi.org/project/online-judge-tools/11.5.1/#files - (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")) - (patches (search-patches "online-judge-tools.patch")))) - (build-system python-build-system) + (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")) + (patches (search-patches "online-judge-tools.patch")))) + (build-system pyproject-build-system) (arguments - (list #:phases #~(modify-phases %standard-phases - ;; These tests require network connections - (add-after 'unpack 'remove-failing-test - (lambda _ - (delete-file "tests/command_version.py") #t))))) + (list + #:test-flags + ;; These tests require network connections + #~(list "--ignore=tests/command_version.py"))) + (native-inputs (list python-pytest python-setuptools-next)) (inputs (list time)) (propagated-inputs (list python-online-judge-api-client python-colorama python-requests)) |
