Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.ansible-pylibssh: init at 1.1.0 #247367

Merged
merged 4 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6113,6 +6113,12 @@
githubId = 313929;
name = "Gabriel Ebner";
};
geluk = {
email = "[email protected]";
github = "geluk";
githubId = 1516985;
name = "Johan Geluk";
};
genericnerdyusername = {
name = "GenericNerdyUsername";
email = "[email protected]";
Expand Down
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/ansible-pylibssh/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/ansible/core.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, ncclient
, packaging
, paramiko
, ansible-pylibssh
, passlib
, pexpect
, psutil
Expand Down Expand Up @@ -63,6 +64,7 @@ buildPythonPackage rec {
lxml
ncclient
paramiko
ansible-pylibssh
pexpect
psutil
pycrypto
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/ansible/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
, ncclient
, netaddr
, paramiko
, ansible-pylibssh
, pynetbox
, scp
, textfsm
Expand Down Expand Up @@ -45,6 +46,7 @@ buildPythonPackage {
ncclient
netaddr
paramiko
ansible-pylibssh
xmltodict
# ansible.posix
# ansible.utils
Expand All @@ -62,6 +64,7 @@ buildPythonPackage {
jxmlease
ncclient
paramiko
ansible-pylibssh
scp
xmltodict
] ++ lib.optionals (withNetbox) [
Expand Down
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/expandvars/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, wheel
}:

buildPythonPackage rec {
pname = "expandvars";
version = "0.11.0";
format = "pyproject";

disabled = pythonOlder "3.6";

src = fetchPypi {
inherit pname version;
hash = "sha256-Q7Qn9dMnqzYAY98mFR+Y0qbwj+GPKJWjKn9fDxF7W1I=";
};

nativeBuildInputs = [
setuptools
wheel
];

# The PyPi package does not supply any tests
doCheck = false;

pythonImportsCheck = [
"expandvars"
];

meta = with lib; {
description = "Expand system variables Unix style";
homepage = "https://github.com/sayanarijit/expandvars";
license = licenses.mit;
maintainers = with maintainers; [ geluk ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down Expand Up @@ -3532,6 +3534,8 @@ self: super: with self; {

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

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

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

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