2024-08-07 16:05:34 +03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3,
|
|
|
|
fetchFromGitHub,
|
2023-12-14 16:50:02 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "ad-miner";
|
2024-08-07 12:14:45 +03:00
|
|
|
version = "1.5.2";
|
2023-12-14 16:50:02 +03:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mazars-Tech";
|
|
|
|
repo = "AD_Miner";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-08-07 12:14:45 +03:00
|
|
|
hash = "sha256-Xb0RFllg3oqW6PhUjRxDkgXd7lv7XD37FfBsnpxrN+s=";
|
2023-12-14 16:50:02 +03:00
|
|
|
};
|
|
|
|
|
2024-02-18 19:06:09 +03:00
|
|
|
# All requirements are pinned
|
2024-01-16 13:35:51 +03:00
|
|
|
pythonRelaxDeps = true;
|
|
|
|
|
2024-08-07 16:05:34 +03:00
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
2024-06-13 14:49:10 +03:00
|
|
|
|
|
|
|
dependencies = with python3.pkgs; [
|
2023-12-14 16:50:02 +03:00
|
|
|
neo4j
|
|
|
|
numpy
|
|
|
|
pytz
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-08-07 16:05:34 +03:00
|
|
|
pythonImportsCheck = [ "ad_miner" ];
|
2023-12-14 16:50:02 +03:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Active Directory audit tool that leverages cypher queries to crunch data from Bloodhound";
|
|
|
|
homepage = "https://github.com/Mazars-Tech/AD_Miner";
|
2024-02-18 19:06:09 +03:00
|
|
|
changelog = "https://github.com/Mazars-Tech/AD_Miner/blob/v${version}/CHANGELOG.md";
|
2023-12-14 16:50:02 +03:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
mainProgram = "AD-miner";
|
|
|
|
};
|
|
|
|
}
|