2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
bcrypt,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
fetchpatch,
|
|
|
|
fetchPypi,
|
|
|
|
gssapi,
|
|
|
|
icecream,
|
|
|
|
invoke,
|
|
|
|
mock,
|
|
|
|
pyasn1,
|
|
|
|
pynacl,
|
|
|
|
pytestCheckHook,
|
2024-10-11 05:15:48 +00:00
|
|
|
pytest-relaxed,
|
2024-06-05 15:53:02 +00:00
|
|
|
six,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paramiko";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "3.5.0";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-rRHlQNpPVc7dpSkx8aP4Eqgjinr39ipg3lOM2AuygSQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
|
|
|
# Fix usage of dsa keys
|
|
|
|
# https://github.com/paramiko/paramiko/pull/1606/
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/paramiko/paramiko/commit/18e38b99f515056071fb27b9c1a4f472005c324a.patch";
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-bPDghPeLo3NiOg+JwD5CJRRLv2VEqmSx1rOF2Tf8ZDA=";
|
|
|
|
})
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
dependencies = [
|
2022-09-30 11:47:45 +00:00
|
|
|
bcrypt
|
2022-01-26 04:04:25 +00:00
|
|
|
cryptography
|
|
|
|
pyasn1
|
2022-09-30 11:47:45 +00:00
|
|
|
six
|
2024-10-11 05:15:48 +00:00
|
|
|
];
|
2022-01-26 04:04:25 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
gssapi = [
|
|
|
|
pyasn1
|
|
|
|
gssapi
|
|
|
|
];
|
|
|
|
ed25519 = [
|
|
|
|
pynacl
|
|
|
|
bcrypt
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
invoke = [ invoke ];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
icecream
|
2022-01-26 04:04:25 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2024-10-11 05:15:48 +00:00
|
|
|
pytest-relaxed
|
2024-10-04 16:56:33 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "paramiko" ];
|
2022-01-26 04:04:25 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/paramiko/paramiko/";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/paramiko/paramiko/blob/${version}/sites/www/changelog.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Native Python SSHv2 protocol library";
|
2024-10-11 05:15:48 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
'';
|
2024-10-11 05:15:48 +00:00
|
|
|
maintainers = lib.teams.helsinki-systems.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|