Unverified Commit a4b1ce52 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #212411 from fabaff/asyncssh-deps

python310Packages.asyncssh: add optional-dependencies
parents 05861d5f d433beb6
Loading
Loading
Loading
Loading
+24 −9
Original line number Diff line number Diff line
{ stdenv
, lib
{ lib
, stdenv
, bcrypt
, buildPythonPackage
, cryptography
@@ -31,23 +31,38 @@ buildPythonPackage rec {
  };

  propagatedBuildInputs = [
    bcrypt
    cryptography
    libsodium
    nettle
    typing-extensions
  ];

  passthru.optional-dependencies = {
    bcrypt = [
      bcrypt
    ];
    fido2 = [
      fido2
    ];
    gssapi = [
      gssapi
    ];
    libnacl = [
      libnacl
    libsodium
    nettle
    pyopenssl
    ];
    pkcs11 = [
      python-pkcs11
    typing-extensions
    ];
    pyOpenSSL = [
      pyopenssl
    ];
  };

  nativeCheckInputs = [
    openssh
    openssl
    pytestCheckHook
  ];
  ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);

  patches = [
    # Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730