2022-11-30 13:05:16 +00:00
|
|
|
{ buildPythonApplication
|
|
|
|
, yubikey-manager
|
|
|
|
, mss
|
2023-11-05 04:50:22 +00:00
|
|
|
, zxing-cpp
|
2022-11-30 13:05:16 +00:00
|
|
|
, pillow
|
2024-01-24 23:14:19 +00:00
|
|
|
, poetry-core
|
|
|
|
, pythonRelaxDepsHook
|
2022-11-30 13:05:16 +00:00
|
|
|
|
|
|
|
, src
|
|
|
|
, version
|
|
|
|
, meta
|
|
|
|
}:
|
|
|
|
|
2022-12-29 20:56:06 +00:00
|
|
|
buildPythonApplication {
|
2022-11-30 13:05:16 +00:00
|
|
|
pname = "yubioath-flutter-helper";
|
|
|
|
inherit src version meta;
|
|
|
|
|
2024-01-24 23:14:19 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2023-07-25 13:27:31 +00:00
|
|
|
sourceRoot = "${src.name}/helper";
|
2022-11-30 13:05:16 +00:00
|
|
|
|
2023-05-09 09:28:33 +00:00
|
|
|
nativeBuildInputs = [
|
2024-01-24 23:14:19 +00:00
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
2023-05-09 09:28:33 +00:00
|
|
|
];
|
|
|
|
|
2023-08-13 12:36:48 +00:00
|
|
|
pythonRelaxDeps = true;
|
2023-05-09 09:28:33 +00:00
|
|
|
|
2022-11-30 13:05:16 +00:00
|
|
|
postPatch = ''
|
2023-08-13 12:36:48 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "authenticator-helper" "yubioath-flutter-helper" \
|
|
|
|
--replace "0.1.0" "${version}"
|
2022-11-30 13:05:16 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 = [
|
|
|
|
yubikey-manager
|
|
|
|
mss
|
2023-11-05 04:50:22 +00:00
|
|
|
zxing-cpp
|
2022-11-30 13:05:16 +00:00
|
|
|
pillow
|
|
|
|
];
|
|
|
|
}
|