ubports-click: Get rid of externally-supplied self

This commit is contained in:
OPNA2608 2024-12-24 11:11:45 +01:00
parent 65121a8080
commit 5f3da539cc

View file

@ -5,7 +5,6 @@
lib, lib,
stdenv, stdenv,
testers, testers,
ubports-click,
autoreconfHook, autoreconfHook,
dbus, dbus,
dbus-test-runner, dbus-test-runner,
@ -23,7 +22,8 @@
wrapGAppsHook3, wrapGAppsHook3,
}: }:
python3Packages.buildPythonApplication rec { let
self = python3Packages.buildPythonApplication rec {
pname = "click"; pname = "click";
version = "0.5.2"; version = "0.5.2";
format = "other"; format = "other";
@ -146,9 +146,6 @@ python3Packages.buildPythonApplication rec {
''; '';
passthru = { passthru = {
tests.pkg-config = testers.hasPkgConfigModules {
package = ubports-click;
};
updateScript = gitUpdater { }; updateScript = gitUpdater { };
}; };
@ -166,4 +163,12 @@ python3Packages.buildPythonApplication rec {
"click-0.4" "click-0.4"
]; ];
}; };
};
in
self // {
passthru = self.passthru // {
tests.pkg-config = testers.hasPkgConfigModules {
package = self;
};
};
} }