22 buildPythonPackage rec {
27 disabled = pythonOlder "3.6";
30 inherit pname version;
31 hash = "sha256-OxWcEFqjiMHiJFxPr0g/VArajK2ZQCKBEZEAFm5e2zw=";
34 build-system = [ setuptools ];
42 buildInputs = [ libsodium ];
44 optional-dependencies = {
48 libnacl = [ libnacl ];
49 pkcs11 = [ python-pkcs11 ];
50 pyOpenSSL = [ pyopenssl ];
53 __darwinAllowLocalNetworking = true;
59 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
62 # Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730
64 # This changed the test to avoid setting the sticky bit
65 # because that's not allowed for plain files in FreeBSD.
66 # However that broke the test on NixOS, failing with
67 # "Operation not permitted"
68 ./fix-sftp-chmod-test-nixos.patch
72 # Disables windows specific test (specifically the GSSAPI wrapper for Windows)
79 # Requires network access
80 "test_connect_timeout_exceeded"
81 # Fails in the sandbox
85 pythonImportsCheck = [ "asyncssh" ];
88 description = "Asynchronous SSHv2 Python client and server library";
89 homepage = "https://asyncssh.readthedocs.io/";
90 changelog = "https://github.com/ronf/asyncssh/blob/v${version}/docs/changes.rst";
91 license = licenses.epl20;