~ruther/guix-local

dce4929c — Nicolas Graves 10 months ago
gnu: python-libcst: Extend with (pyproject-guile-json).

* gnu/packages/python-xyz.scm (python-libcst)[arguments]
<#:phases>: Extend with (pyproject-guile-json).

Change-Id: I4301b1ce3054497a6d4cf1660987605398070d88
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
12dd89da — Nicolas Graves 10 months ago
gnu: python-tiktoken: Extend with (pyproject-guile-json).

* gnu/packages/python-xyz.scm (python-tiktoken)[arguments]
<#:phases>: Extend with (pyproject-guile-json).

Change-Id: I94c11b8e85c41f8da8158d691114952df823d8de
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
759c416b — Nicolas Graves 10 months ago
gnu: python-pydantic-core: Extend with (pyproject-guile-json).

* gnu/packages/python-xyz.scm (python-pydantic-core)[arguments]
<#:phases>: Extend with (pyproject-guile-json).

Change-Id: Ifa061c9408a6f67988c3fcdc24123fd295a85261
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
32305c05 — Nicolas Graves 10 months ago
gnu: python-orjson: Extend with (pyproject-guile-json).

* gnu/packages/python-xyz.scm (python-orjson)[arguments]
<#:phases>: Extend with (pyproject-guile-json).

Change-Id: If76da1021cd035828bf5c365c01ac0f94e96d2c1
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
545f8fad — Nicolas Graves 10 months ago
gnu: maturin: Improve style.

* gnu/packages/rust-apps.scm (maturin)[arguments]: Improve style.
<#:phases>: Use G-expressions.

Change-Id: Icf2fd08db952c5dbd71a2c8cbb8b153d21aff61c
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
c71655af — Nicolas Graves 10 months ago
gnu: lensfun: Extend with (pyproject-guile-json).

* gnu/packages/python-xyz.scm (lensfun)[arguments]
<#:phases>: Extend with (pyproject-guile-json).

Change-Id: I3303e58cec378a70b0ab42fa8096625460e1b2ca
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
096733b9 — Nicolas Graves 10 months ago
gnu: python-streamtracer: Extend with (pyproject-guile-json).

* gnu/packages/python-xyz.scm (python-steamtracer)[arguments]
<#:phases>: Extend with (pyproject-guile-json).

Change-Id: I968fd19a792bc09635a4bb991e4db8eb789523c9
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
b2ffcdf2 — Nicolas Graves 10 months ago
build-system: cargo: Pass features to manifest-targets.

* guix/build/cargo-build-system.scm (manifest-targets): Pass features to
manifest-targets.

Change-Id: Id1a11d75d16389b92124fc49d2102d6aec935f64
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
32f9304e — Nicolas Graves 10 months ago
build-system: cargo: Migrate to `cargo metadata`.

cargo read-manifest complains about its deprecation. The replacement
is cargo metadata --no-deps --format-version 1, see
https://github.com/rust-lang/cargo/issues/13629#cargo-read-manifest

* guix/build/cargo-build-system.scm (manifest-targets): Refresh using
`cargo metadata`.
(has-executable-target?): Refresh accordingly.

Change-Id: I4cd4881d37523a7ac1f70e68df457ceb9075c1c3
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
b186b25a — Efraim Flashner 10 months ago
build-system: cargo: Migrate to (json).

Fixes guix/guix#2620.

* guix/build-system/cargo.scm (%cargo-build-system-modules): Remove
(guix build json).
(cargo-guile-json): New procedure.
(cargo-build, cargo-cross-build): Add guile-json extension.
* guix/build/cargo-build-system.scm (manifest-targets): Adjust to using
(json).

Change-Id: I832a5555e63520241d3a4c4ccd2dcf860573dbab

Change-Id: I545f72b00f17e88ad19fe33870785367cac63ac4
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
108ff867 — Nicolas Graves 10 months ago
build-system: pyproject: Migrate to (json).

Since (json) is imported in Guix, we remove gradually the old (guix
build json) module.

* guix/build-system/pyproject.scm (%pyproject-build-system-modules):
Remove (guix build json).
(pyproject-guile-json): New procedure.
(pyproject-build): Add guile-json extension, fix configure-flags
argument.

* guix/build/pyproject-build-system.scm (build): Refresh procedure
replacing (guix build json) procedures with (json) ones.

Change-Id: I3aede51f971b27104340816b60cf53174a9bd332
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
dec3b249 — Nicolas Graves 9 months ago
build-system: pyproject: Handle multiprocessing in the entry point.

Fixes guix/guix#1089.

According to the multiprocessing documentation, the entry point should
be protected by using `if __name__ == '__main__':`, see
https://docs.python.org/3/library/multiprocessing.html#multiprocessing-programming

Note that this is not the standard implementation highlighted in
https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts
but it will fix scripts using the standard lib multiprocessing and it
should not harm any other script.

 guix/build/pyproject-build-system (create-entrypoints)
[create-script]: Wrap execution line with `if __name__ == '__main__':`

Change-Id: I450eb380cc4f613468395afd4b4eb52673d2ab1a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
27ba3604 — Nicolas Graves 9 months ago
build-system: pyproject: Add -sP flags for entry-point wrapper.

Fixes guix/guix#1118.

-P: prevents adding current working directory or script's directory to
the search path for modules.

-s: Prevent USER site-packages
directory (~/.local/lib/pythonX.Y[t]/site-packages) from being
included in the search path for modules.

* guix/build/pyproject-build-system (create-entrypoints)
[create-script]: Add -sP flags, improve pythonic style.

Change-Id: Iabc7bb59bf08be1e0c662a069a30ae17a53c7fd5
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
62ea5f58 — Nicolas Graves 9 months ago
build-system: pyproject: Normalize entry point import.

The standard is using from instead of import and it indeed allows to
avoid some side-effects in some cases, see
https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts

* guix/build/pyproject-build-system (create-entrypoints)
[create-script]: Add -sP flags, improve pythonic style.

* gnu/packages/video.scm (python-yewtube)[arguments]<#:phases>: Remove
phase 'patch-script.

Change-Id: I995454c774666ed474b2418c18ec36c4f53bf015
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
d111a6a6 — Lars-Dominik Braun 10 months ago
guix: toml: Fix keys with embedded escape codes.

Quoted keys are treated by the specification like ordinary strings,
so escape codes must be handled as well.

* guix/build/toml.scm (eval-value): Move string escape handling…
(eval-value): …here.
(eval-toml-file): Un-escape quoted keys.
* tests/toml.scm ("parse-toml: Quoted keys with escapes"): New testcase.

Fixes: guix/guix#2414
Change-Id: I612e415cc93207bbdd18b6ec8279255fee16670a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
82918e46 — Julien Lepiller 10 months ago
gnu: hashlink: Update to 1.15.

* gnu/packages/haxe.scm (hashlink): Update to 1.15.

Change-Id: Ibe3f3df78404cd8f301527c933af577c90ccef65
c836e993 — Julien Lepiller 10 months ago
gnu: Add vhacd.

* gnu/packages/graphics.scm (vhacd): New variable.

Change-Id: If26793a7ff9fcb77174494f01d884432599e395a
6ad79090 — Julien Lepiller 10 months ago
gnu: Add meshoptimizer.

* gnu/packages/graphics.scm (meshoptimizer): New variable.

Change-Id: I92f1a0bcc3ce61cf5318ac6cd02d49af5378beaa
cd2e01d3 — Efraim Flashner 7 months ago
gnu: qdmr: Build with librsvg-for-system.

* gnu/packages/radio.scm (qdmr)[native-inputs]: Remove librsvg; add
librsvg-for-system.

Change-Id: Ic7346f50025e4bdc9a6bcae2882d801b0e6f57f5
be679e69 — Christopher Baines 7 months ago
gnu: nar-herder: Update to 0-50.8a99247.

* gnu/packages/package-management.scm (nar-herder): Update to 0-50.8a99247.

Change-Id: I4b69c2f7b75fd61fb77e7f755165fd22af8b5d6b
Next