Merge pull request #212411 from fabaff/asyncssh-deps

python310Packages.asyncssh: add optional-dependencies

Changed files
+24 -9
pkgs
development
python-modules
asyncssh
+24 -9
pkgs/development/python-modules/asyncssh/default.nix
···
-
{ stdenv
-
, lib
+
{ lib
+
, stdenv
, bcrypt
, buildPythonPackage
, cryptography
···
};
propagatedBuildInputs = [
-
bcrypt
cryptography
-
fido2
-
gssapi
-
libnacl
libsodium
nettle
-
pyopenssl
-
python-pkcs11
typing-extensions
];
+
passthru.optional-dependencies = {
+
bcrypt = [
+
bcrypt
+
];
+
fido2 = [
+
fido2
+
];
+
gssapi = [
+
gssapi
+
];
+
libnacl = [
+
libnacl
+
];
+
pkcs11 = [
+
python-pkcs11
+
];
+
pyOpenSSL = [
+
pyopenssl
+
];
+
};
+
nativeCheckInputs = [
openssh
openssl
pytestCheckHook
-
];
+
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
patches = [
# Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730