sambaFull: fix samba-tool missing cryptography module

samba-tool depends on cryptography python module so add it to pythonPath
if enableDomainController and also check with versionSambaTool test.

(cherry picked from commit a59124a4b0)
This commit is contained in:
zi3m5f 2026-05-19 21:09:41 +02:00 committed by github-actions[bot]
commit 62f5d5222c

View file

@ -285,6 +285,9 @@ stdenv.mkDerivation (finalAttrs: {
python3Packages.dnspython
python3Packages.markdown
tdb
]
++ lib.optionals enableDomainController [
python3Packages.cryptography
];
strictDeps = true;
@ -348,6 +351,13 @@ stdenv.mkDerivation (finalAttrs: {
command = "${finalAttrs.finalPackage}/bin/smbd -V";
package = finalAttrs.finalPackage;
};
}
// lib.optionalAttrs enableDomainController {
versionSambaTool = testers.testVersion {
command = "${lib.getExe' finalAttrs.finalPackage "samba-tool"} --version";
package = finalAttrs.finalPackage;
version = finalAttrs.version;
};
};
meta = {