Skip to content

Commit

Permalink
wa-crypt-tools: init at 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
esteban committed Jan 22, 2025
1 parent a3141f6 commit e38950a
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/by-name/wa/wa-crypt-tools/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
python3Packages,
fetchFromGitHub,
}:

python3Packages.buildPythonApplication rec {
pname = "wa-crypt-tools";
version = "0.1.0";
format = "pyproject";

src = fetchFromGitHub {
owner = "ElDavoo";
repo = pname;
rev = "v${version}";
hash = "sha256-v5OrpYCajXNlfdTm569o8qw6REtPSUC9FLLwwDk+L/E=";
};

build-system = with python3Packages; [
setuptools
setuptools-scm
];

pythonRelaxDeps = [ "protobuf" ];

dependencies = with python3Packages; [
javaobj-py3
pycryptodomex
protobuf
];

nativeCheckInputs = [ python3Packages.pytest ];

checkPhase = ''
runHook preCheck
pytest
runHook postCheck
'';

meta = {
description = "Manage WhatsApp .crypt12, .crypt14 and .crypt15 files.";
homepage = "https://github.com/ElDavoo/wa-crypt-tools";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ EstebanMacanek ];
platforms = lib.platforms.all;
};
}

0 comments on commit e38950a

Please sign in to comment.