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