2022-06-13 10:43:38 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "offensive-azure";
|
|
|
|
version = "0.4.10";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "blacklanternsecurity";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-5JHix+/uGGhXM89VLimI81g4evci5ZUtNV1c1xopjuI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
certifi
|
|
|
|
charset-normalizer
|
|
|
|
colorama
|
|
|
|
dnspython
|
|
|
|
idna
|
|
|
|
pycryptodome
|
|
|
|
python-whois
|
|
|
|
requests
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-06-13 10:43:38 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Use default Python module
|
|
|
|
substituteInPlace pyproject.toml \
|
2022-07-04 16:18:34 +02:00
|
|
|
--replace 'uuid = "^1.30"' "" \
|
|
|
|
--replace 'python-whois = "^0.7.3"' 'python-whois = "*"'
|
2022-06-13 10:43:38 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"offensive_azure"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of offensive tools targeting Microsoft Azure";
|
|
|
|
homepage = "https://github.com/blacklanternsecurity/offensive-azure";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|