about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ansible-pylibssh/default.nix
blob: 5eb60419fcf7a86b54f270e64a1805d1e7d67312 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 ];
  };
}