Robert Schütz 2026-05-24 09:18:56 -07:00
commit 30a78f2925

View file

@ -3,12 +3,9 @@
bcrypt,
buildPythonPackage,
cryptography,
fetchPypi,
gssapi,
fetchFromGitHub,
icecream,
invoke,
mock,
pyasn1,
pynacl,
pytest-relaxed,
pytestCheckHook,
@ -17,12 +14,14 @@
buildPythonPackage rec {
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 = 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/${src.tag}/sites/www/changelog.rst";
description = "Native Python SSHv2 protocol library";
license = lib.licenses.lgpl21Plus;
longDescription = ''