mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
python3Packages.fido2_2: init at 2.0.0
This commit is contained in:
50
pkgs/development/python-modules/fido2/2.nix
Normal file
50
pkgs/development/python-modules/fido2/2.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
cryptography,
|
||||
fetchPypi,
|
||||
poetry-core,
|
||||
pyscard,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fido2";
|
||||
version = "2.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-MGHNBec7Og72r8O4A9V8gmqi1qlzLRar1ydzYfWOeWQ=";
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
pythonRelaxDeps = [ "cryptography" ];
|
||||
|
||||
dependencies = [ cryptography ];
|
||||
|
||||
optional-dependencies = {
|
||||
pcsc = [ pyscard ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
unittestFlagsArray = [ "-v" ];
|
||||
|
||||
# Disable tests which require physical device
|
||||
pytestFlagsArray = [ "--no-device" ];
|
||||
|
||||
pythonImportsCheck = [ "fido2" ];
|
||||
|
||||
meta = {
|
||||
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 = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ prusnak ];
|
||||
};
|
||||
}
|
||||
@@ -5016,6 +5016,8 @@ self: super: with self; {
|
||||
|
||||
fido2 = callPackage ../development/python-modules/fido2 { };
|
||||
|
||||
fido2_2 = callPackage ../development/python-modules/fido2/2.nix { };
|
||||
|
||||
fields = callPackage ../development/python-modules/fields { };
|
||||
|
||||
file-read-backwards = callPackage ../development/python-modules/file-read-backwards { };
|
||||
|
||||
Reference in New Issue
Block a user