pythonPackages.ansible-pylibssh: init at 1.1.0
This allows usage of pylibssh in Ansible instead of paramiko.
This commit is contained in:
parent
eee8771175
commit
aebb003f2f
49
pkgs/development/python-modules/ansible-pylibssh/default.nix
Normal file
49
pkgs/development/python-modules/ansible-pylibssh/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, libssh
|
||||
, cython
|
||||
, wheel
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, toml
|
||||
, expandvars
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-pylibssh";
|
||||
version = "1.1.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-spaGux6dYvtUtpOdU6oN7SEn8IgBof2NpQSPvr+Zplg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
wheel
|
||||
setuptools
|
||||
setuptools-scm
|
||||
toml
|
||||
expandvars
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
libssh
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pylibsshext"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings to client functionality of libssh specific to Ansible use case";
|
||||
homepage = "https://github.com/ansible/pylibssh";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ geluk ];
|
||||
};
|
||||
}
|
|
@ -522,6 +522,8 @@ self: super: with self; {
|
|||
|
||||
ansible-kernel = callPackage ../development/python-modules/ansible-kernel { };
|
||||
|
||||
ansible-pylibssh = callPackage ../development/python-modules/ansible-pylibssh { };
|
||||
|
||||
ansible-runner = callPackage ../development/python-modules/ansible-runner { };
|
||||
|
||||
ansible-vault-rw = callPackage ../development/python-modules/ansible-vault-rw { };
|
||||
|
|
Loading…
Reference in a new issue