Files
nixpkgs/pkgs/development/python-modules/fido2/default.nix
Fabian Affolter 48c51e6061 python312Packages.fido2: refactor
- migrate to pytestCheckHook
- clean-up inputs
- update disabled
- add optional-dependencies
2024-05-24 09:37:45 +02:00

46 lines
973 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchPypi,
poetry-core,
pyscard,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fido2";
version = "1.1.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-JhAPIm0SztYhymGYUozhft9nt430KHruEoX+481aqfw=";
};
build-system = [ poetry-core ];
dependencies = [ cryptography ];
passthru.optional-dependencies = {
pcsc = [ pyscard ];
};
nativeCheckInputs = [ pytestCheckHook ];
unittestFlagsArray = [ "-v" ];
pythonImportsCheck = [ "fido2" ];
meta = with lib; {
description = "Provides library functionality for FIDO 2.0, including communication with a device over USB";
homepage = "https://github.com/Yubico/python-fido2";
changelog = "https://github.com/Yubico/python-fido2/releases/tag/${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ prusnak ];
};
}