Unverified Commit 6a74322a authored by Theodore Ni's avatar Theodore Ni Committed by GitHub
Browse files

Merge pull request #247367 from geluk/master

pythonPackages.ansible-pylibssh: init at 1.1.0
parents 215bb5e0 98f5022d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6113,6 +6113,12 @@
    githubId = 313929;
    name = "Gabriel Ebner";
  };
  geluk = {
    email = "johan+nix@geluk.io";
    github = "geluk";
    githubId = 1516985;
    name = "Johan Geluk";
  };
  genericnerdyusername = {
    name = "GenericNerdyUsername";
    email = "genericnerdyusername@proton.me";
+49 −0
Original line number Diff line number Diff line
{ 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 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
, ncclient
, packaging
, paramiko
, ansible-pylibssh
, passlib
, pexpect
, psutil
@@ -63,6 +64,7 @@ buildPythonPackage rec {
    lxml
    ncclient
    paramiko
    ansible-pylibssh
    pexpect
    psutil
    pycrypto
+3 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
, ncclient
, netaddr
, paramiko
, ansible-pylibssh
, pynetbox
, scp
, textfsm
@@ -45,6 +46,7 @@ buildPythonPackage {
    ncclient
    netaddr
    paramiko
    ansible-pylibssh
    xmltodict
    # ansible.posix
    # ansible.utils
@@ -62,6 +64,7 @@ buildPythonPackage {
    jxmlease
    ncclient
    paramiko
    ansible-pylibssh
    scp
    xmltodict
  ] ++ lib.optionals (withNetbox) [
+39 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
Loading