Skip to content

Commit

Permalink
parallel-ssh: init at 2.13.0 with dependencies (NixOS#375143)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Jan 30, 2025
2 parents 3571dc0 + 3c325aa commit 70718c9
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/parallel-ssh/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
gevent,
ssh-python,
ssh2-python,
unittestCheckHook,
}:

buildPythonPackage rec {
pname = "parallel-ssh";
version = "2.13.0";

src = fetchFromGitHub {
owner = "ParallelSSH";
repo = "parallel-ssh";
tag = version;
hash = "sha256-J/rwlJ9BOcENngIVz5cU+uA34hEEw7QsgsPnpNbbZbk=";
};

build-system = [
setuptools
];

dependencies = [
gevent
ssh-python
ssh2-python
];

pythonImportsCheck = [ "pssh" ];

nativeCheckInputs = [
unittestCheckHook
];

meta = {
description = "Asynchronous parallel SSH client library";
homepage = "https://github.com/ParallelSSH/parallel-ssh";
changelog = "https://github.com/ParallelSSH/parallel-ssh/blob/${version}/Changelog.rst";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ infinidoge ];
};
}
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/ssh-python/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cython,
openssl,
zlib,
libssh,
}:

buildPythonPackage rec {
pname = "ssh-python";
version = "1.1.1";

src = fetchFromGitHub {
owner = "ParallelSSH";
repo = "ssh-python";
tag = version;
hash = "sha256-kidz4uHT5C8TUROLGQUHihemYtwOoWZQNw7ElbwYKLM=";
};

build-system = [ setuptools ];
nativeBuildInputs = [
cython
];
buildInputs = [
openssl
zlib
libssh
];

env = {
SYSTEM_LIBSSH = true;
};

pythonImportsCheck = [ "ssh" ];

meta = {
description = "Python bindings for libssh C library";
homepage = "https://github.com/ParallelSSH/ssh-python";
changelog = "https://github.com/ParallelSSH/ssh-python/blob/${version}/Changelog.rst";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ infinidoge ];
};
}
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/ssh2-python/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cython,
openssl,
zlib,
libssh2,
}:

buildPythonPackage rec {
pname = "ssh2-python";
version = "1.1.2";

src = fetchFromGitHub {
owner = "ParallelSSH";
repo = "ssh2-python";
tag = version;
hash = "sha256-nNMe7BTHI4O9Ueyq2YxtHat4BrrtiWGFkKHwUu/NtkM=";
};

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";
changelog = "https://github.com/ParallelSSH/ssh2-python/blob/${version}/Changelog.rst";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ infinidoge ];
};
}
6 changes: 6 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10034,6 +10034,8 @@ self: super: with self; {

paragraphs = callPackage ../development/python-modules/paragraphs { };

parallel-ssh = callPackage ../development/python-modules/parallel-ssh { };

param = callPackage ../development/python-modules/param { };

parameter-expansion-patched = callPackage ../development/python-modules/parameter-expansion-patched { };
Expand Down Expand Up @@ -15544,6 +15546,10 @@ self: super: with self; {

sshtunnel = callPackage ../development/python-modules/sshtunnel { };

ssh-python = callPackage ../development/python-modules/ssh-python { };

ssh2-python = callPackage ../development/python-modules/ssh2-python { };

sslib = callPackage ../development/python-modules/sslib { };

ssg = callPackage ../development/python-modules/ssg { };
Expand Down

0 comments on commit 70718c9

Please sign in to comment.