evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ke / keepwn / package.nix
blob8306cbe441ea8f5d76d83285081d8b7520dc3f51
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   python3,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "keepwn";
10   version = "0.4";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "Orange-Cyberdefense";
15     repo = "KeePwn";
16     rev = "refs/tags/${version}";
17     hash = "sha256-AkqBC65XrMt4V5KgzLepnQoqpdvbrtWLY3DmVuy8Zck=";
18   };
20   build-system = with python3.pkgs; [ setuptools ];
22   dependencies = with python3.pkgs; [
23     chardet
24     impacket
25     lxml
26     pefile
27     pykeepass
28     python-magic
29     termcolor
30   ];
32   postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
33     mv $out/bin/KeePwn $out/bin/$pname
34   '';
36   # Project has no tests
37   doCheck = false;
39   pythonImportsCheck = [ "keepwn" ];
41   meta = with lib; {
42     description = "Tool to automate KeePass discovery and secret extraction";
43     homepage = "https://github.com/Orange-Cyberdefense/KeePwn";
44     changelog = "https://github.com/Orange-Cyberdefense/KeePwn/releases/tag/${version}";
45     license = licenses.gpl3Only;
46     maintainers = with maintainers; [ fab ];
47     mainProgram = "keepwn";
48   };