diff options
Diffstat (limited to 'pkgs/development/python-modules/fido2/default.nix')
-rw-r--r-- | pkgs/development/python-modules/fido2/default.nix | 50 |
1 files changed, 20 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/fido2/default.nix b/pkgs/development/python-modules/fido2/default.nix index 82d635d8d0f60..8b5a06c4a1fc5 100644 --- a/pkgs/development/python-modules/fido2/default.nix +++ b/pkgs/development/python-modules/fido2/default.nix @@ -1,49 +1,39 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, mock -, poetry-core -, pyfakefs -, pythonOlder -, six -, unittestCheckHook +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + poetry-core, + pyscard, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { pname = "fido2"; version = "1.1.3"; - format = "pyproject"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; hash = "sha256-JhAPIm0SztYhymGYUozhft9nt430KHruEoX+481aqfw="; }; - nativeBuildInputs = [ - poetry-core - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ - cryptography - six - ]; + dependencies = [ cryptography ]; - nativeCheckInputs = [ - unittestCheckHook - mock - pyfakefs - ]; + passthru.optional-dependencies = { + pcsc = [ pyscard ]; + }; + + nativeCheckInputs = [ pytestCheckHook ]; - unittestFlagsArray = [ - "-v" - ]; + unittestFlagsArray = [ "-v" ]; - pythonImportsCheck = [ - "fido2" - ]; + pythonImportsCheck = [ "fido2" ]; meta = with lib; { description = "Provides library functionality for FIDO 2.0, including communication with a device over USB"; |