evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / of / offensive-azure / package.nix
blobfb5dce6798dcd7b994be2c418e4347c76854a959
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   nativeCheckInputs = 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   };