mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.paramiko: 4.0.0 -> 5.0.0 (#523673)
This commit is contained in:
commit
1a5dbf0996
2 changed files with 21 additions and 27 deletions
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchPypi,
|
||||
python3,
|
||||
}:
|
||||
|
||||
|
|
@ -12,12 +11,18 @@ let
|
|||
# Doesn't work with latest paramiko
|
||||
paramiko = super.paramiko.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "3.4.0";
|
||||
src = fetchPypi {
|
||||
pname = "paramiko";
|
||||
inherit version;
|
||||
hash = "sha256-qsCPJqMdxN/9koIVJ9FoLZnVL572hRloEUqHKPPCdNM=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "paramiko";
|
||||
repo = "paramiko";
|
||||
tag = version;
|
||||
hash = "sha256-V0s9IoRmqXvzYQzzBsWmovYWwXnNC0x1phyiyjbejGA=";
|
||||
};
|
||||
doCheck = false;
|
||||
meta = oldAttrs.meta // {
|
||||
knownVulnerabilities = [
|
||||
"CVE-2026-44405"
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,26 +3,25 @@
|
|||
bcrypt,
|
||||
buildPythonPackage,
|
||||
cryptography,
|
||||
fetchPypi,
|
||||
gssapi,
|
||||
fetchFromGitHub,
|
||||
icecream,
|
||||
invoke,
|
||||
mock,
|
||||
pyasn1,
|
||||
pynacl,
|
||||
pytest-relaxed,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "paramiko";
|
||||
version = "4.0.0";
|
||||
version = "5.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-aiXwezgMycmojSuSCtNxZ6xGZ/jZiGzOvY+Q9lS11p8=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "paramiko";
|
||||
repo = "paramiko";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-zzbM2oGaZ5jkIN7LyDGuMAKSpSmUwpBbup6MBVdTaXA=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
|
@ -34,21 +33,11 @@ buildPythonPackage rec {
|
|||
pynacl
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
gssapi = [
|
||||
pyasn1
|
||||
gssapi
|
||||
];
|
||||
ed25519 = [ ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
icecream
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-relaxed
|
||||
]
|
||||
++ lib.concatAttrValues optional-dependencies;
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "paramiko" ];
|
||||
|
||||
|
|
@ -56,7 +45,7 @@ buildPythonPackage rec {
|
|||
|
||||
meta = {
|
||||
homepage = "https://github.com/paramiko/paramiko/";
|
||||
changelog = "https://github.com/paramiko/paramiko/blob/${version}/sites/www/changelog.rst";
|
||||
changelog = "https://github.com/paramiko/paramiko/blob/${finalAttrs.src.tag}/sites/www/changelog.rst";
|
||||
description = "Native Python SSHv2 protocol library";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
longDescription = ''
|
||||
|
|
@ -66,4 +55,4 @@ buildPythonPackage rec {
|
|||
supported. SFTP client and server mode are both supported too.
|
||||
'';
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue