diff options
Diffstat (limited to 'pkgs/development/python-modules/asyncssh/default.nix')
-rw-r--r-- | pkgs/development/python-modules/asyncssh/default.nix | 78 |
1 files changed, 34 insertions, 44 deletions
diff --git a/pkgs/development/python-modules/asyncssh/default.nix b/pkgs/development/python-modules/asyncssh/default.nix index 735e831c03249..3618d0eaa1849 100644 --- a/pkgs/development/python-modules/asyncssh/default.nix +++ b/pkgs/development/python-modules/asyncssh/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, bcrypt -, buildPythonPackage -, cryptography -, fetchPypi -, fido2 -, gssapi -, libnacl -, libsodium -, nettle -, openssh -, openssl -, pyopenssl -, pytestCheckHook -, python-pkcs11 -, pythonOlder -, typing-extensions +{ + lib, + bcrypt, + buildPythonPackage, + cryptography, + fetchPypi, + fido2, + gssapi, + libnacl, + libsodium, + nettle, + openssh, + openssl, + pyopenssl, + pytestCheckHook, + python-pkcs11, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { pname = "asyncssh"; version = "2.14.2"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.6"; @@ -30,32 +31,23 @@ buildPythonPackage rec { hash = "sha256-6Va/iYjQega6MwX2YE4mH0ygFMSiMvCHPxx2kvvjz8I="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ cryptography - libsodium nettle typing-extensions ]; - passthru.optional-dependencies = { - bcrypt = [ - bcrypt - ]; - fido2 = [ - fido2 - ]; - gssapi = [ - gssapi - ]; - libnacl = [ - libnacl - ]; - pkcs11 = [ - python-pkcs11 - ]; - pyOpenSSL = [ - pyopenssl - ]; + buildInputs = [ libsodium ]; + + optional-dependencies = { + bcrypt = [ bcrypt ]; + fido2 = [ fido2 ]; + gssapi = [ gssapi ]; + libnacl = [ libnacl ]; + pkcs11 = [ python-pkcs11 ]; + pyOpenSSL = [ pyopenssl ]; }; __darwinAllowLocalNetworking = true; @@ -64,7 +56,7 @@ buildPythonPackage rec { openssh openssl pytestCheckHook - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (builtins.attrValues optional-dependencies); patches = [ # Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730 @@ -90,9 +82,7 @@ buildPythonPackage rec { "test_forward_remote" ]; - pythonImportsCheck = [ - "asyncssh" - ]; + pythonImportsCheck = [ "asyncssh" ]; meta = with lib; { description = "Asynchronous SSHv2 Python client and server library"; |