2025-07-11 16:52:36 +02:00

48 lines
950 B
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "pre2k";
version = "3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "garrettfoster13";
repo = "pre2k";
tag = version;
hash = "sha256-z1ttuRos7x/zdWiYYozxWzRarFExd4W5rUYAEiUMugU=";
};
pythonRelaxDeps = [
"impacket"
"ldap3"
"pyasn1"
"rich"
"typer"
];
build-system = with python3.pkgs; [ poetry-core ];
dependencies = with python3.pkgs; [
impacket
ldap3
pyasn1
rich
typer
];
pythonImportsCheck = [ "pre2k" ];
meta = {
description = "Tool to query for the existence of pre-windows 2000 computer objects";
homepage = "https://github.com/garrettfoster13/pre2k";
changelog = "https://github.com/garrettfoster13/pre2k/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "pre2k";
};
}