diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-30 19:12:58 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:23:14 +0100 |
| commit | 94185c13d1ca767d5024306287389073eaa58c8b (patch) | |
| tree | 06c20e9401730fecdbca5fea5bde488fe12c42ba /gnu | |
| parent | cfa2edf13bb869759e57291910ea2b78b3ff23f4 (diff) | |
gnu: nml: Switch to pyproject.
* gnu/packages/game-development.scm (nml):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Use tests? for 'check phase.
[native-inputs]: Add python-setuptools.
Change-Id: I4bcc1e586e0fd9e0cec749e85502661532485975
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/game-development.scm | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 110af0e909a..896b051290c 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm | |||
| @@ -515,19 +515,24 @@ PCM data.") | |||
| 515 | (version "0.8.1") | 515 | (version "0.8.1") |
| 516 | (source | 516 | (source |
| 517 | (origin | 517 | (origin |
| 518 | (method url-fetch) | 518 | (method git-fetch) |
| 519 | (uri (pypi-uri "nml" version)) | 519 | (uri (git-reference |
| 520 | (url "https://github.com/OpenTTD/nml") | ||
| 521 | (commit version))) | ||
| 522 | (file-name (git-file-name name version)) | ||
| 520 | (sha256 | 523 | (sha256 |
| 521 | (base32 "0krs3jac9jc0zqr59ivfl5vibqc15b4yhww73j3c01dla1shvlcj")))) | 524 | (base32 "03qrpnv2r2kjjfqkc67sqjzxq59li7vb1jhbdhgif8kf2x92805k")))) |
| 522 | (arguments | 525 | (arguments |
| 523 | (list #:phases | 526 | (list |
| 524 | #~(modify-phases %standard-phases | 527 | #:phases |
| 525 | (replace 'check | 528 | #~(modify-phases %standard-phases |
| 526 | (lambda _ | 529 | (replace 'check |
| 527 | (invoke "make" "-C" "regression")))))) | 530 | (lambda* (#:key tests? #:allow-other-keys) |
| 528 | (build-system python-build-system) | 531 | (when tests? |
| 529 | (propagated-inputs | 532 | (invoke "make" "-C" "regression"))))))) |
| 530 | (list python-pillow python-ply)) | 533 | (build-system pyproject-build-system) |
| 534 | (native-inputs (list python-setuptools)) | ||
| 535 | (propagated-inputs (list python-pillow python-ply)) | ||
| 531 | (home-page "https://github.com/OpenTTD/nml") | 536 | (home-page "https://github.com/OpenTTD/nml") |
| 532 | (synopsis "NML compiler") | 537 | (synopsis "NML compiler") |
| 533 | (description | 538 | (description |
