17 buildPythonPackage rec {
20 format = "setuptools";
23 inherit pname version;
24 hash = "sha256-ajd3qWGshtvvN1xfW41QAUoaltD9fwVKQ7yIATSw/3c=";
28 # Fix usage of dsa keys
29 # https://github.com/paramiko/paramiko/pull/1606/
31 url = "https://github.com/paramiko/paramiko/commit/18e38b99f515056071fb27b9c1a4f472005c324a.patch";
32 hash = "sha256-bPDghPeLo3NiOg+JwD5CJRRLv2VEqmSx1rOF2Tf8ZDA=";
36 propagatedBuildInputs = [
41 ] ++ passthru.optional-dependencies.ed25519; # remove on 3.0 update
43 passthru.optional-dependencies = {
44 gssapi = [ pyasn1 gssapi ];
45 ed25519 = [ pynacl bcrypt ];
53 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
56 # disable tests that require pytest-relaxed, which is broken
57 "tests/test_client.py"
58 "tests/test_ssh_gss.py"
61 pythonImportsCheck = [
65 __darwinAllowLocalNetworking = true;
68 homepage = "https://github.com/paramiko/paramiko/";
69 changelog = "https://github.com/paramiko/paramiko/blob/${version}/sites/www/changelog.rst";
70 description = "Native Python SSHv2 protocol library";
71 license = licenses.lgpl21Plus;
73 Library for making SSH2 connections (client or server). Emphasis is
74 on using SSH2 as an alternative to SSL for making secure connections
75 between python scripts. All major ciphers and hash methods are
76 supported. SFTP client and server mode are both supported too.
78 maintainers = with maintainers; [ ];