biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / posteid-seed-extractor / default.nix
blobb0c1f04d21a479f2a8edc5fdb3e110a090b47bca
1 { lib
2 , python3Packages
3 , fetchFromGitHub
4 }:
6 python3Packages.buildPythonApplication {
7   pname = "posteid-seed-extractor";
8   version = "unstable-2022-02-23";
10   src = fetchFromGitHub {
11     owner = "simone36050";
12     repo = "PosteID-seed-extractor";
13     rev = "667e2997a98aa3273a6bf6b4b34ca77715120e7f";
14     hash = "sha256-smNwp67HYbZuMrl0uf2X2yox2JqeEV6WzIBp4dALwgw=";
15   };
17   format = "other";
19   pythonPath = with python3Packages; [
20    certifi
21    cffi
22    charset-normalizer
23    cryptography
24    idna
25    jwcrypto
26    pycparser
27    pycryptodome
28    pyotp
29    qrcode
30    requests
31    urllib3
32    wrapt
33   ];
35   installPhase = ''
36     runHook preInstall
37     install -Dm755 extractor.py $out/bin/posteid-seed-extractor
38     runHook postInstall
39   '';
41   meta = with lib; {
42     homepage = "https://github.com/simone36050/PosteID-seed-extractor";
43     description = "Extract OTP seed instead of using PosteID app";
44     mainProgram = "posteid-seed-extractor";
45     license = licenses.mit;
46     maintainers = with maintainers; [ aciceri ];
47   };