mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
PyO3 version did not supported python3.14 error: the configured Python interpreter version (3.14) is newer than PyO3's maximum supported version (3.13) = help: please check if an updated version of PyO3 is available. Current version: 0.23.5 = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
90 lines
1.6 KiB
Nix
90 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
arc4,
|
|
asn1crypto,
|
|
asn1tools,
|
|
asyauth,
|
|
asysocks,
|
|
buildPythonPackage,
|
|
cargo,
|
|
colorama,
|
|
fetchFromGitHub,
|
|
iconv,
|
|
pillow,
|
|
pyperclip,
|
|
rustPlatform,
|
|
rustc,
|
|
setuptools,
|
|
setuptools-rust,
|
|
tqdm,
|
|
unicrypto,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aardwolf";
|
|
version = "0.2.13";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skelsec";
|
|
repo = "aardwolf";
|
|
tag = version;
|
|
hash = "sha256-8QXPvfVeT3qadxTvt/LQX3XM5tGj6SpfOhP/9xcZHW4=";
|
|
};
|
|
|
|
patches = [ ./update-pyo3.patch ];
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit
|
|
pname
|
|
version
|
|
src
|
|
patches
|
|
;
|
|
sourceRoot = "${src.name}/aardwolf/utils/rlers";
|
|
hash = "sha256-n28jzS2+zbXsdR7rT0PBvcqNacuFMJKUug0mBYc4eFE=";
|
|
patchFlags = [ "-p4" ]; # strip i/aardwolf/utils/rlers/ prefix
|
|
};
|
|
|
|
cargoRoot = "aardwolf/utils/rlers";
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-rust
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
rustPlatform.cargoSetupHook
|
|
cargo
|
|
rustc
|
|
];
|
|
|
|
dependencies = [
|
|
arc4
|
|
asn1crypto
|
|
asn1tools
|
|
asyauth
|
|
asysocks
|
|
colorama
|
|
pillow
|
|
pyperclip
|
|
tqdm
|
|
unicrypto
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isDarwin) [ iconv ];
|
|
|
|
# Module doesn't have tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aardwolf" ];
|
|
|
|
meta = {
|
|
description = "Asynchronous RDP protocol implementation";
|
|
mainProgram = "ardpscan";
|
|
homepage = "https://github.com/skelsec/aardwolf";
|
|
changelog = "https://github.com/skelsec/aardwolf/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|