Commit 48c51e60 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.fido2: refactor

- migrate to pytestCheckHook
- clean-up inputs
- update disabled
- add optional-dependencies
parent 8d3b5db8
Loading
Loading
Loading
Loading
+11 −16
Original line number Diff line number Diff line
@@ -3,38 +3,33 @@
  buildPythonPackage,
  cryptography,
  fetchPypi,
  mock,
  poetry-core,
  pyfakefs,
  pyscard,
  pythonOlder,
  six,
  unittestCheckHook,
  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" ];