Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wa-crypt-tools: init at 0.1.0 #375361

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7067,6 +7067,11 @@
githubId = 16175276;
keys = [ { fingerprint = "E4CE B0F0 B2EC 09A3 9678 F294 CC7A 7E3C 6CF3 1343"; } ];
};
EstebanMacanek = {
name = "Esteban Macanek";
github = "EstebanMacanek";
githubId = 75503218;
};
ethancedwards8 = {
email = "[email protected]";
github = "ethancedwards8";
Expand Down
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" ];

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add any tests?

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;
};
}