Silvan Mosberger 667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 57b193d8ddeaf4f5219d2bae1d23b081e4906e57
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00

50 lines
1.0 KiB
Nix

{
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";
mainProgram = "posteid-seed-extractor";
license = licenses.mit;
maintainers = with maintainers; [ aciceri ];
};
}