mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
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.
This commit is contained in:
@@ -279,6 +279,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
python3Packages.dnspython
|
||||
python3Packages.markdown
|
||||
tdb
|
||||
]
|
||||
++ lib.optionals enableDomainController [
|
||||
python3Packages.cryptography
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
@@ -342,6 +345,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 = {
|
||||
|
||||
Reference in New Issue
Block a user