Files
nixpkgs/pkgs/by-name/ms/msldapdump/package.nix
Michael Daniels 5ed07317e9 treewide: change 'format = "other";' to 'pyproject = false;'
Entirely find-and-replace based.

A few usages that would cause rebuilds if changed remain.

This PR should have 0 rebuilds.
2026-01-12 17:50:37 -05:00

48 lines
1007 B
Nix

{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication {
pname = "msldapdump";
version = "0-unstable-2023-06-12";
pyproject = false;
src = fetchFromGitHub {
owner = "dievus";
repo = "msLDAPDump";
rev = "bdffe66be20ff844f55f69fd6d842d7f75f66f2d";
hash = "sha256-qH4AaebrTKYxxjXawllxgiG9fVm03zmTRv/HAyNpewg=";
};
propagatedBuildInputs = with python3.pkgs; [
colorama
ldap3
];
dontBuild = true;
installPhase = ''
runHook preInstall
install -vD msLDAPDump.py $out/bin/msLDAPDump.py
makeWrapper ${python3.interpreter} $out/bin/msldapdump \
--set PYTHONPATH "$PYTHONPATH:$out/bin/msLDAPDump.py" \
--add-flags "-O $out/bin/msLDAPDump.py"
runHook postInstall
'';
# Project has no tests
doCheck = false;
meta = {
description = "LDAP enumeration tool";
homepage = "https://github.com/dievus/msLDAPDump";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ fab ];
};
}