python3Packages: fix makeWrapperArgs (#555828)

This commit is contained in:
Michael Daniels
2026-08-28 20:16:44 -04:00
committed by Martin Weinelt
parent c46611e57c
commit 3bdcd22f9c
5 changed files with 18 additions and 5 deletions

View File

@@ -117,7 +117,10 @@ buildPythonPackage rec {
done
'';
makeWrapperArgs = [ ''--add-flags "--setopt=pluginpath=$out/${python.sitePackages}/dnf-plugins"'' ];
makeWrapperArgs = [
"--add-flags"
"--setopt=pluginpath=$out/${python.sitePackages}/dnf-plugins"
];
meta = {
description = "Core plugins to use with DNF package manager";

View File

@@ -18,7 +18,12 @@ buildPythonPackage rec {
hash = "sha256-kX/DCXO/qwm1iF44gG7aBSUpG4Vf2Aer0zwrtq4YNHo=";
};
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ graphviz ]}" ];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ graphviz ])
];
# Needed so dot is on path of the test script
nativeCheckInputs = [ graphviz ];

View File

@@ -46,8 +46,8 @@ buildPythonPackage (finalAttrs: {
makeWrapperArgs = [
"--prefix"
"PYTHONPATH"
"."
":"
"."
];
meta = {

View File

@@ -71,7 +71,8 @@ buildPythonPackage {
# It is only usable from the wrapped bin/nitropy
makeWrapperArgs = [
"--set"
"LIBNK_PATH ${lib.makeLibraryPath [ libnitrokey ]}"
"LIBNK_PATH"
(lib.makeLibraryPath [ libnitrokey ])
];
pythonImportsCheck = [ "pynitrokey" ];

View File

@@ -125,7 +125,11 @@ buildPythonPackage (finalAttrs: {
'';
# Set env variable explicitly for Darwin, but allow overriding when invoking directly
makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${finalAttrs.env.FONTCONFIG_FILE}" ];
makeWrapperArgs = [
"--set-default"
"FONTCONFIG_FILE"
finalAttrs.env.FONTCONFIG_FILE
];
pythonImportsCheck = [ "weasyprint" ];