Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "offensive-azure"; 8 version = "0.4.10"; 9 format = "pyproject"; 10 11 src = fetchFromGitHub { 12 owner = "blacklanternsecurity"; 13 repo = pname; 14 rev = "v${version}"; 15 hash = "sha256-5JHix+/uGGhXM89VLimI81g4evci5ZUtNV1c1xopjuI="; 16 }; 17 18 nativeBuildInputs = with python3.pkgs; [ 19 poetry-core 20 ]; 21 22 propagatedBuildInputs = with python3.pkgs; [ 23 certifi 24 charset-normalizer 25 colorama 26 dnspython 27 idna 28 pycryptodome 29 python-whois 30 requests 31 requests 32 ]; 33 34 nativeCheckInputs = with python3.pkgs; [ 35 pytestCheckHook 36 ]; 37 38 postPatch = '' 39 # Use default Python module 40 substituteInPlace pyproject.toml \ 41 --replace 'uuid = "^1.30"' "" \ 42 --replace 'python-whois = "^0.7.3"' 'python-whois = "*"' 43 ''; 44 45 pythonImportsCheck = [ 46 "offensive_azure" 47 ]; 48 49 meta = with lib; { 50 description = "Collection of offensive tools targeting Microsoft Azure"; 51 homepage = "https://github.com/blacklanternsecurity/offensive-azure"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}