Merge pull request #296882 from fabaff/donpapi

donpapi: init at 1.2.0
This commit is contained in:
Fabian Affolter 2024-03-18 22:32:45 +01:00 committed by GitHub
commit 8f96c25c0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "donpapi";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "login-securite";
repo = "DonPAPI";
rev = "refs/tags/V${version}";
hash = "sha256-60aGnsr36X3mf91nH9ud0xyLBqKgzZ4ALucrLGpAuzQ=";
};
pythonRelaxDeps = [
"cryptography"
"impacket"
"pyasn1"
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
cryptography
impacket
lnkparse3
pyasn1
pyjwt
setuptools
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"donpapi"
];
meta = with lib; {
description = "Tool for dumping DPAPI credentials remotely";
homepage = "https://github.com/login-securite/DonPAPI";
changelog = "https://github.com/login-securite/DonPAPI/releases/tag/V${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "donpapi";
};
}

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "lnkparse3";
version = "1.3.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Matmaus";
repo = "LnkParse3";
rev = "refs/tags/v${version}";
hash = "sha256-Ej2Tv1RViHqm2z1EG/cAkImcvtJcwSc3I0DxIL/q8FI=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"LnkParse3"
];
meta = with lib; {
description = "Windows Shortcut file (LNK) parser";
homepage = "https://github.com/Matmaus/LnkParse3";
changelog = "https://github.com/Matmaus/LnkParse3/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -6791,6 +6791,8 @@ self: super: with self; {
lmtpd = callPackage ../development/python-modules/lmtpd { };
lnkparse3 = callPackage ../development/python-modules/lnkparse3 { };
loca = callPackage ../development/python-modules/loca { };
localimport = callPackage ../development/python-modules/localimport { };