mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05: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.
(cherry picked from commit a59124a4b0)
This commit is contained in:
parent
5dc3c8f1a8
commit
62f5d5222c
1 changed files with 10 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue