2022-01-26 04:04:25 +00:00
|
|
|
{ lib
|
|
|
|
, bcrypt
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
2022-01-26 04:04:25 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, invoke
|
2022-01-26 04:04:25 +00:00
|
|
|
, mock
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyasn1
|
2022-01-26 04:04:25 +00:00
|
|
|
, pynacl
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-relaxed
|
2022-01-26 04:04:25 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paramiko";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.9.2";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "944a9e5dbdd413ab6c7951ea46b0ab40713235a9c4c5ca81cfe45c6f14fa677b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bcrypt
|
|
|
|
cryptography
|
|
|
|
pyasn1
|
|
|
|
pynacl
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
invoke
|
|
|
|
mock
|
|
|
|
pytest-relaxed
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_sftp.py"
|
|
|
|
"tests/test_config.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"paramiko"
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/paramiko/paramiko/";
|
|
|
|
description = "Native Python SSHv2 protocol library";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
longDescription = ''
|
2022-01-26 04:04:25 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2022-01-26 04:04:25 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|