2022-08-08 12:16:43 +02:00
|
|
|
{ lib
|
2023-03-19 02:51:47 +01:00
|
|
|
, stdenv
|
2022-08-08 12:16:43 +02:00
|
|
|
, arc4
|
|
|
|
, asn1crypto
|
|
|
|
, asn1tools
|
2022-12-30 20:12:51 +01:00
|
|
|
, asyauth
|
2022-08-08 12:16:43 +02:00
|
|
|
, asysocks
|
|
|
|
, buildPythonPackage
|
2023-05-12 16:17:16 +02:00
|
|
|
, cargo
|
2022-08-08 12:16:43 +02:00
|
|
|
, colorama
|
2022-12-30 20:12:51 +01:00
|
|
|
, fetchFromGitHub
|
2023-03-19 02:51:47 +01:00
|
|
|
, iconv
|
2022-08-08 12:16:43 +02:00
|
|
|
, minikerberos
|
|
|
|
, pillow
|
|
|
|
, pyperclip
|
|
|
|
, pythonOlder
|
2022-12-30 20:12:51 +01:00
|
|
|
, rustPlatform
|
2023-05-12 16:17:16 +02:00
|
|
|
, rustc
|
2022-12-30 20:12:51 +01:00
|
|
|
, setuptools-rust
|
2022-08-08 12:16:43 +02:00
|
|
|
, tqdm
|
|
|
|
, unicrypto
|
|
|
|
, winsspi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aardwolf";
|
2023-09-21 13:30:33 +02:00
|
|
|
version = "0.2.8";
|
2022-08-08 12:16:43 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-12-30 20:12:51 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skelsec";
|
|
|
|
repo = "aardwolf";
|
2023-03-19 22:21:11 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2023-09-21 13:30:33 +02:00
|
|
|
hash = "sha256-4kJsW0uwWfcgVruEdDw3QhbzfPDuLjmK+YvcLrgF4SI=";
|
2022-08-08 12:16:43 +02:00
|
|
|
};
|
|
|
|
|
2022-12-30 20:12:51 +01:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
2023-07-25 15:27:31 +02:00
|
|
|
sourceRoot = "${src.name}/aardwolf/utils/rlers";
|
2022-12-30 20:12:51 +01:00
|
|
|
name = "${pname}-${version}";
|
2023-09-21 13:30:33 +02:00
|
|
|
hash = "sha256-i7fmdWOseRQGdvdBnlGi+lgWvhC2WFI2FwXU9JywYsc=";
|
2022-12-30 20:12:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoRoot = "aardwolf/utils/rlers";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
setuptools-rust
|
|
|
|
cargo
|
|
|
|
rustc
|
2023-05-12 16:17:16 +02:00
|
|
|
];
|
2022-12-30 20:12:51 +01:00
|
|
|
|
2022-08-08 12:16:43 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
arc4
|
|
|
|
asn1crypto
|
|
|
|
asn1tools
|
2022-12-30 20:12:51 +01:00
|
|
|
asyauth
|
2022-08-08 12:16:43 +02:00
|
|
|
asysocks
|
|
|
|
colorama
|
|
|
|
minikerberos
|
|
|
|
pillow
|
|
|
|
pyperclip
|
|
|
|
tqdm
|
|
|
|
unicrypto
|
|
|
|
winsspi
|
2023-03-19 02:51:47 +01:00
|
|
|
] ++ lib.optionals (stdenv.isDarwin) [
|
|
|
|
iconv
|
2022-08-08 12:16:43 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# Module doesn't have tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aardwolf"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Asynchronous RDP protocol implementation";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "ardpscan";
|
2022-08-08 12:16:43 +02:00
|
|
|
homepage = "https://github.com/skelsec/aardwolf";
|
2023-03-19 22:21:11 +01:00
|
|
|
changelog = "https://github.com/skelsec/aardwolf/releases/tag/${version}";
|
2022-08-08 12:16:43 +02:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|