diff --git a/pkgs/by-name/do/donpapi/package.nix b/pkgs/by-name/do/donpapi/package.nix new file mode 100644 index 000000000000..1271d67d398f --- /dev/null +++ b/pkgs/by-name/do/donpapi/package.nix @@ -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"; + }; +} diff --git a/pkgs/development/python-modules/lnkparse3/default.nix b/pkgs/development/python-modules/lnkparse3/default.nix new file mode 100644 index 000000000000..255466a22b7c --- /dev/null +++ b/pkgs/development/python-modules/lnkparse3/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a2fbbf351a1c..bcbf87539811 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };