diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2023-02-17 10:26:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 10:26:34 +0000 |
commit | 16415ac875d2abee1f11b1f263d4407abf2bc75b (patch) | |
tree | ac5511d7d6e8f5624d54782d1c7b1dad9e412597 /pkgs/tools/security | |
parent | 3e081095a4471f126dfb1346cb51ddec36784c23 (diff) | |
parent | 59d5393967c4636de90b1b1068433a10d363a485 (diff) |
Merge pull request #216218 from aciceri/posteid-seed-extractor
posteid-seed-extractor: init at unstable-23-02-2022
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/posteid-seed-extractor/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/security/posteid-seed-extractor/default.nix b/pkgs/tools/security/posteid-seed-extractor/default.nix new file mode 100644 index 0000000000000..176b210b37794 --- /dev/null +++ b/pkgs/tools/security/posteid-seed-extractor/default.nix @@ -0,0 +1,47 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication { + pname = "posteid-seed-extractor"; + version = "unstable-2022-02-23"; + + src = fetchFromGitHub { + owner = "simone36050"; + repo = "PosteID-seed-extractor"; + rev = "667e2997a98aa3273a6bf6b4b34ca77715120e7f"; + hash = "sha256-smNwp67HYbZuMrl0uf2X2yox2JqeEV6WzIBp4dALwgw="; + }; + + format = "other"; + + pythonPath = with python3Packages; [ + certifi + cffi + charset-normalizer + cryptography + idna + jwcrypto + pycparser + pycryptodome + pyotp + qrcode + requests + urllib3 + wrapt + ]; + + installPhase = '' + runHook preInstall + install -Dm755 extractor.py $out/bin/posteid-seed-extractor + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/simone36050/PosteID-seed-extractor"; + description = "Extract OTP seed instead of using PosteID app"; + license = licenses.mit; + maintainers = with maintainers; [ aciceri ]; + }; +} |