From 33c6cafdddac70d5fd7d18f05794da983dc9b1e6 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sun, 19 Jan 2025 15:05:52 -0500 Subject: [PATCH] ssh-python: init at 1.1.1 --- .../python-modules/ssh-python/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/ssh-python/default.nix diff --git a/pkgs/development/python-modules/ssh-python/default.nix b/pkgs/development/python-modules/ssh-python/default.nix new file mode 100644 index 000000000000..eac4194a0871 --- /dev/null +++ b/pkgs/development/python-modules/ssh-python/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5a8874b6eeb7..da9379202e22 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15516,6 +15516,8 @@ self: super: with self; { sshtunnel = callPackage ../development/python-modules/sshtunnel { }; + ssh-python = callPackage ../development/python-modules/ssh-python { }; + sslib = callPackage ../development/python-modules/sslib { }; ssg = callPackage ../development/python-modules/ssg { };