2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 17:23:08 +00:00
nixpkgs/pkgs/tools/security/offensive-azure/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

56 lines
1.1 KiB
Nix

{ 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
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
# Use default Python module
substituteInPlace pyproject.toml \
--replace 'uuid = "^1.30"' "" \
--replace 'python-whois = "^0.7.3"' 'python-whois = "*"'
'';
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 ];
};
}