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.
This commit is contained in:
parent
923c6759e6
commit
a59124a4b0
1 changed files with 10 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue