diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-27 12:03:21 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-01 19:35:00 +0000 |
| commit | d6323ba597c5740818c3190f19a801c94836fc14 (patch) | |
| tree | 6e55e3b90e6a7dba87d672ac254eb050118301cb /gnu/packages/parallel.scm | |
| parent | df99ec9e7b2825c1f9a5fb0c44336e0d54dce90e (diff) | |
gnu: python-slurm-magic: Switch to pyproject.
* gnu/packages/parallel.scm (python-slurm-magic):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style, modernize with gexps and
seaerch-input-file.
<#:tests?>: Disable them.
[native-inputs]: Add python-setuptools.
Change-Id: Ic5243c647f645de49eeb54262eabeea6df73743e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/parallel.scm')
| -rw-r--r-- | gnu/packages/parallel.scm | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 55c3f0c7bb5..716f46736da 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm | |||
| @@ -552,33 +552,35 @@ supercomputer (via, e.g., MPI or JobLib).") | |||
| 552 | (name "python-slurm-magic") | 552 | (name "python-slurm-magic") |
| 553 | (version (git-version "0.0" revision commit)) | 553 | (version (git-version "0.0" revision commit)) |
| 554 | (home-page "https://github.com/NERSC/slurm-magic") | 554 | (home-page "https://github.com/NERSC/slurm-magic") |
| 555 | (source (origin | 555 | (source |
| 556 | (method git-fetch) | 556 | (origin |
| 557 | (uri (git-reference (url home-page) | 557 | (method git-fetch) |
| 558 | (commit commit))) | 558 | (uri (git-reference |
| 559 | (sha256 | 559 | (url home-page) |
| 560 | (base32 | 560 | (commit commit))) |
| 561 | "19pp2vs0wm8mx0arz9n6lw9wgyv70w9wyi4y6b91qc5j3bz5igfs")) | 561 | (sha256 |
| 562 | (file-name (git-file-name name version)))) | 562 | (base32 "19pp2vs0wm8mx0arz9n6lw9wgyv70w9wyi4y6b91qc5j3bz5igfs")) |
| 563 | (build-system python-build-system) | 563 | (file-name (git-file-name name version)))) |
| 564 | (build-system pyproject-build-system) | ||
| 564 | (arguments | 565 | (arguments |
| 565 | '(#:phases (modify-phases %standard-phases | 566 | (list |
| 566 | (add-before 'build 'set-slurm-path | 567 | #:tests? #f ; No tests. |
| 567 | (lambda* (#:key inputs #:allow-other-keys) | 568 | #:phases |
| 568 | ;; The '_execute' method tries to exec 'salloc' | 569 | #~(modify-phases %standard-phases |
| 569 | ;; etc. from $PATH. Record the absolute file name | 570 | (add-before 'build 'set-slurm-path |
| 570 | ;; instead. | 571 | (lambda* (#:key inputs #:allow-other-keys) |
| 571 | (let ((slurm (assoc-ref inputs "slurm"))) | 572 | ;; The '_execute' method tries to exec 'salloc' |
| 572 | (substitute* "slurm_magic.py" | 573 | ;; etc. from $PATH. Record the absolute file name |
| 573 | (("name = (.*)$" _ value) | 574 | ;; instead. |
| 574 | (string-append "name = \"" | 575 | (let ((slurm-bin (dirname |
| 575 | slurm "/bin/\" + " | 576 | (search-input-file inputs "/bin/sinfo")))) |
| 576 | value "\n"))) | 577 | (substitute* "slurm_magic.py" |
| 577 | #t)))))) | 578 | (("name = (.*)$" _ value) |
| 578 | (inputs | 579 | (string-append "name = \"" slurm-bin "/\" + " |
| 579 | (list slurm)) | 580 | value "\n"))))))))) |
| 580 | (propagated-inputs | 581 | (native-inputs (list python-setuptools)) |
| 581 | (list python-ipython python-pandas)) | 582 | (inputs (list slurm)) |
| 583 | (propagated-inputs (list python-ipython python-pandas)) | ||
| 582 | (synopsis "Control the SLURM batch scheduler from Jupyter Notebook") | 584 | (synopsis "Control the SLURM batch scheduler from Jupyter Notebook") |
| 583 | (description | 585 | (description |
| 584 | "This package implements Jupyter/IPython | 586 | "This package implements Jupyter/IPython |
