2025-01-19 15:06:02 -05:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
cython,
|
|
|
|
openssl,
|
|
|
|
zlib,
|
|
|
|
libssh2,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ssh2-python";
|
2025-02-12 21:09:35 +00:00
|
|
|
version = "1.1.2.post1";
|
2025-01-19 15:06:02 -05:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ParallelSSH";
|
|
|
|
repo = "ssh2-python";
|
|
|
|
tag = version;
|
2025-02-12 21:09:35 +00:00
|
|
|
hash = "sha256-LHIj0lSAMJ+tUvIyMl0xT/i0N4U+HbiiD62WIXzboMU=";
|
2025-01-19 15:06:02 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
libssh2
|
|
|
|
];
|
|
|
|
|
|
|
|
env = {
|
|
|
|
SYSTEM_LIBSSH2 = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ssh2" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for libssh2 C library";
|
|
|
|
homepage = "https://github.com/ParallelSSH/ssh2-python";
|
2025-02-12 21:09:35 +00:00
|
|
|
changelog = "https://github.com/ParallelSSH/ssh2-python/blob/${src.tag}/Changelog.rst";
|
2025-01-19 15:06:02 -05:00
|
|
|
license = lib.licenses.lgpl21Only;
|
|
|
|
maintainers = with lib.maintainers; [ infinidoge ];
|
|
|
|
};
|
|
|
|
}
|