Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, python3Packages
3, fetchFromGitHub
4}:
5
6python3Packages.buildPythonApplication {
7 pname = "posteid-seed-extractor";
8 version = "unstable-2022-02-23";
9
10 src = fetchFromGitHub {
11 owner = "simone36050";
12 repo = "PosteID-seed-extractor";
13 rev = "667e2997a98aa3273a6bf6b4b34ca77715120e7f";
14 hash = "sha256-smNwp67HYbZuMrl0uf2X2yox2JqeEV6WzIBp4dALwgw=";
15 };
16
17 format = "other";
18
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 ];
34
35 installPhase = ''
36 runHook preInstall
37 install -Dm755 extractor.py $out/bin/posteid-seed-extractor
38 runHook postInstall
39 '';
40
41 meta = with lib; {
42 homepage = "https://github.com/simone36050/PosteID-seed-extractor";
43 description = "Extract OTP seed instead of using PosteID app";
44 license = licenses.mit;
45 maintainers = with maintainers; [ aciceri ];
46 };
47}