2020-04-24 23:36:52 +00:00
|
|
|
{ pkgs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cryptography
|
|
|
|
, bcrypt
|
|
|
|
, invoke
|
|
|
|
, pynacl
|
|
|
|
, pyasn1
|
2021-09-18 10:52:07 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-relaxed
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paramiko";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "2.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "e673b10ee0f1c80d46182d3af7751d033d9b573dd7054d2d0aa46be186c3c1d2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ];
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
# with python 3.9.6+, the deprecation warnings will fail the test suite
|
|
|
|
# see: https://github.com/pyinvoke/invoke/issues/829
|
|
|
|
doCheck = false;
|
2021-09-18 10:52:07 +00:00
|
|
|
checkInputs = [ invoke pytestCheckHook pytest-relaxed mock ];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_sftp.py"
|
|
|
|
"tests/test_config.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
homepage = "https://github.com/paramiko/paramiko/";
|
|
|
|
description = "Native Python SSHv2 protocol library";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
longDescription = ''
|
|
|
|
This is a library for making SSH2 connections (client or server).
|
|
|
|
Emphasis is on using SSH2 as an alternative to SSL for making secure
|
|
|
|
connections between python scripts. All major ciphers and hash methods
|
|
|
|
are supported. SFTP client and server mode are both supported too.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|