adscan: init at 9.1.0, python3Packages.credsweeper: init at 1.16.0, python3Packages.pybase62: init at 0.5.0 (#529868)

This commit is contained in:
Fabian Affolter
2026-06-09 20:30:39 +00:00
committed by GitHub
5 changed files with 231 additions and 0 deletions
+80
View File
@@ -0,0 +1,80 @@
{
lib,
python3Packages,
fetchFromGitHub,
nix-update-script,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "adscan";
version = "9.1.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ADScanPro";
repo = "adscan";
tag = "v${finalAttrs.version}";
hash = "sha256-YsJFOJtf2rubfAXHWlu6c7ZLX8QE1KZFcFof56MsPVo=";
};
pythonRelaxDeps = [ "credsweeper" ];
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
aardwolf
aiosmb
badldap
certifi
credsweeper
dnspython
graphviz
impacket
jinja2
kerbad
markitdown
netifaces
packaging
playwright
posthog
prompt-toolkit
psutil
pydantic-ai-slim
pydantic-settings
pypsrp
pypykatz
python-docx
python-magic
questionary
redis
requests
rich
scapy
selenium
sentry-sdk
textual
weasyprint
winacl
];
pythonImportsCheck = [
"adscan_core"
"adscan_launcher"
];
# Project has no tests
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "Active Directory pentesting tool for Linux";
homepage = "https://github.com/ADScanPro/adscan";
changelog = "https://github.com/ADScanPro/adscan/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.bsl11;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "adscan";
};
})
+1
View File
@@ -0,0 +1 @@
{ python3Packages }: with python3Packages; toPythonApplication credsweeper
@@ -0,0 +1,107 @@
{
lib,
base58,
beautifulsoup4,
buildPythonPackage,
colorama,
cryptography,
deepdiff,
fetchFromGitHub,
gitpython,
hatchling,
humanfriendly,
hypothesis,
lxml,
nix-update-script,
numpy,
odfpy,
onnxruntime,
openpyxl,
pandas,
pdfminer-six,
pybase62,
pyjks,
pytestCheckHook,
python-dateutil,
python-docx,
python-pptx,
pyxlsb,
pyyaml,
rpmfile,
striprtf,
whatthepatch,
xlrd,
}:
buildPythonPackage (finalAttrs: {
pname = "credsweeper";
version = "1.16.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Samsung";
repo = "CredSweeper";
tag = "v${finalAttrs.version}";
hash = "sha256-DiIT7DzH6ut/Ax2qgga5vKjeXocROGbHdARLWJijejY=";
};
build-system = [ hatchling ];
dependencies = [
base58
beautifulsoup4
colorama
cryptography
gitpython
humanfriendly
lxml
numpy
odfpy
onnxruntime
openpyxl
pandas
pdfminer-six
pybase62
pyjks
python-dateutil
python-docx
python-pptx
pyxlsb
pyyaml
rpmfile
striprtf
whatthepatch
xlrd
];
nativeCheckInputs = [
deepdiff
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "credsweeper" ];
disabledTests = [
# Probability tests
"test_data_p"
"test_depth_n"
"test_depth_p"
"test_match_n"
"test_multi_jobs_p"
"test_rules_ml_p"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Tool to detect credentials in any directories or files";
homepage = "https://github.com/Samsung/CredSweeper";
changelog = "https://github.com/Samsung/CredSweeper/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "credsweeper";
};
})
@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "pybase62";
version = "0.5.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "suminb";
repo = "base62";
tag = finalAttrs.version;
hash = "sha256-/H16MT3mKCdXItoeOn1LWTHlgWmtwJdQHUaCp18eMz0=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "base62" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Module for base62 encoding";
homepage = "https://github.com/suminb/base62";
changelog = "https://github.com/suminb/base62/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd2WithViews;
maintainers = with lib.maintainers; [ fab ];
};
})
+4
View File
@@ -3338,6 +3338,8 @@ self: super: with self; {
credstash = callPackage ../development/python-modules/credstash { };
credsweeper = callPackage ../development/python-modules/credsweeper { };
crewai = callPackage ../development/python-modules/crewai { };
crispy-bootstrap3 = callPackage ../development/python-modules/crispy-bootstrap3 { };
@@ -13632,6 +13634,8 @@ self: super: with self; {
pybars3 = callPackage ../development/python-modules/pybars3 { };
pybase62 = callPackage ../development/python-modules/pybase62 { };
pybase64 = callPackage ../development/python-modules/pybase64 { };
pybbox = callPackage ../development/python-modules/pybbox { };