nixpkgs/pkgs/by-name/ke/keepwn/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-20 09:07:41 +00:00
{
lib,
stdenv,
fetchFromGitHub,
python3,
2023-05-21 09:53:15 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "keepwn";
2024-04-19 20:20:32 +00:00
version = "0.4";
2024-01-21 09:46:49 +00:00
pyproject = true;
2023-05-21 09:53:15 +00:00
src = fetchFromGitHub {
owner = "Orange-Cyberdefense";
repo = "KeePwn";
rev = "refs/tags/${version}";
2024-04-19 20:20:32 +00:00
hash = "sha256-AkqBC65XrMt4V5KgzLepnQoqpdvbrtWLY3DmVuy8Zck=";
2023-05-21 09:53:15 +00:00
};
2024-04-20 09:07:41 +00:00
build-system = with python3.pkgs; [ setuptools ];
2024-01-21 09:46:49 +00:00
2024-04-20 09:07:28 +00:00
dependencies = with python3.pkgs; [
2023-05-21 09:53:15 +00:00
chardet
impacket
lxml
2024-01-21 09:46:49 +00:00
pefile
pykeepass
python-magic
2023-05-21 09:53:15 +00:00
termcolor
];
postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
mv $out/bin/KeePwn $out/bin/$pname
'';
# Project has no tests
doCheck = false;
2024-04-20 09:07:41 +00:00
pythonImportsCheck = [ "keepwn" ];
2023-05-21 09:53:15 +00:00
meta = with lib; {
description = "Tool to automate KeePass discovery and secret extraction";
homepage = "https://github.com/Orange-Cyberdefense/KeePwn";
changelog = "https://github.com/Orange-Cyberdefense/KeePwn/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
2024-04-20 09:07:28 +00:00
mainProgram = "keepwn";
2023-05-21 09:53:15 +00:00
};
}