2022-12-17 10:02:37 +00:00
|
|
|
{ buildPythonApplication
|
|
|
|
, poetry-core
|
|
|
|
, yubikey-manager
|
|
|
|
, fido2
|
|
|
|
, mss
|
|
|
|
, zxing_cpp
|
|
|
|
, pillow
|
|
|
|
, cryptography
|
|
|
|
|
|
|
|
, src
|
|
|
|
, version
|
|
|
|
, meta
|
|
|
|
}:
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
buildPythonApplication {
|
2022-12-17 10:02:37 +00:00
|
|
|
pname = "yubioath-flutter-helper";
|
|
|
|
inherit src version meta;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/helper";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i \
|
|
|
|
-e 's,zxing-cpp = .*,zxing-cpp = "*",g' \
|
|
|
|
-e 's,mss = .*,mss = "*",g' \
|
2023-05-24 13:37:59 +00:00
|
|
|
-e 's,yubikey-manager = .*,yubikey-manager = "*",g' \
|
|
|
|
-e 's,Pillow = .*,Pillow = "*",g' \
|
2022-12-17 10:02:37 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
}
|