python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / offensive-azure / default.nix
blob78d254fbbca0d48986e10c726e272e1910f1b3be
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "offensive-azure";
8   version = "0.4.10";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "blacklanternsecurity";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-5JHix+/uGGhXM89VLimI81g4evci5ZUtNV1c1xopjuI=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19     poetry-core
20   ];
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   ];
34   checkInputs = with python3.pkgs; [
35     pytestCheckHook
36   ];
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   '';
45   pythonImportsCheck = [
46     "offensive_azure"
47   ];
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   };