53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
python-uhid
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "fido2-hid-bridge";
|
|
version = "0.1.0";
|
|
pyproject = true;
|
|
doCheck = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thexyno";
|
|
repo = "fido2-hid-bridge";
|
|
rev = "a61ca02f6c5c0b3762704589f9fe07b161b0cfcc";
|
|
hash = "sha256-uE4C3maVNf7UkeI4OBeBY75XJx115bUalvfaNc+Qyv4=";
|
|
};
|
|
|
|
|
|
|
|
dependencies = [
|
|
python3Packages.poetry-core
|
|
python3Packages.fido2
|
|
python3Packages.pyscard
|
|
python-uhid
|
|
python3Packages.flake8
|
|
];
|
|
|
|
# nativeCheckInputs =
|
|
# with python3Packages;
|
|
# [
|
|
# pytestCheckHook
|
|
# pytest-cov-stub
|
|
# mock
|
|
# pillow
|
|
# typeguard
|
|
# ]
|
|
# ++ [
|
|
# writableTmpDirAsHomeHook
|
|
# ];
|
|
|
|
meta = {
|
|
description = "a Linux virtual USB-HID FIDO2 Device that forwards CTAP2.1 commands to an attached PC/SC authenticator";
|
|
homepage = "https://github.com/BryanJacobs/fido2-hid-bridge/";
|
|
maintainers = with lib.maintainers; [
|
|
# TODO
|
|
];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|
|
|