depot/third_party/nixpkgs/pkgs/applications/misc/yubioath-flutter/helper.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

44 lines
774 B
Nix

{ buildPythonApplication
, poetry-core
, yubikey-manager
, fido2
, mss
, zxing_cpp
, pillow
, cryptography
, src
, version
, meta
}:
buildPythonApplication {
pname = "yubioath-flutter-helper";
inherit src version meta;
sourceRoot = "source/helper";
format = "pyproject";
postPatch = ''
sed -i \
-e 's,zxing-cpp = .*,zxing-cpp = "*",g' \
-e 's,mss = .*,mss = "*",g' \
pyproject.toml
'';
postInstall = ''
install -Dm 0755 authenticator-helper.py $out/bin/authenticator-helper
install -d $out/libexec/helper
ln -fs $out/bin/authenticator-helper $out/libexec/helper/authenticator-helper
'';
propagatedBuildInputs = [
poetry-core
yubikey-manager
fido2
mss
zxing_cpp
pillow
cryptography
];
}