81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{ lib
|
|
, bcrypt
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchPypi
|
|
, invoke
|
|
, mock
|
|
, pyasn1
|
|
, pynacl
|
|
, pytest-relaxed
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "paramiko";
|
|
version = "2.9.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "944a9e5dbdd413ab6c7951ea46b0ab40713235a9c4c5ca81cfe45c6f14fa677b";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bcrypt
|
|
cryptography
|
|
pyasn1
|
|
pynacl
|
|
];
|
|
|
|
checkInputs = [
|
|
invoke
|
|
mock
|
|
pytest-relaxed
|
|
pytestCheckHook
|
|
];
|
|
|
|
# with python 3.9.6+, the deprecation warnings will fail the test suite
|
|
# see: https://github.com/pyinvoke/invoke/issues/829
|
|
doCheck = false;
|
|
|
|
disabledTestPaths = [
|
|
"tests/test_sftp.py"
|
|
"tests/test_config.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"paramiko"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/paramiko/paramiko/";
|
|
description = "Native Python SSHv2 protocol library";
|
|
license = licenses.lgpl21Plus;
|
|
longDescription = ''
|
|
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.
|
|
'';
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|