mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
47 lines
876 B
Nix
47 lines
876 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' \
|
|
-e 's,yubikey-manager = .*,yubikey-manager = "*",g' \
|
|
-e 's,Pillow = .*,Pillow = "*",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
|
|
];
|
|
}
|