blob: 068af47bca3c2fc651d0ae91d232faab3e28fc95 (
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
50
51
52
|
{
lib,
buildPythonPackage,
cython,
expandvars,
fetchPypi,
libssh,
pythonOlder,
setuptools,
setuptools-scm,
toml,
wheel,
}:
buildPythonPackage rec {
pname = "ansible-pylibssh";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-spaGux6dYvtUtpOdU6oN7SEn8IgBof2NpQSPvr+Zplg=";
};
# Remove after https://github.com/ansible/pylibssh/pull/502 is merged
postPatch = ''
sed -i "/setuptools_scm_git_archive/d" pyproject.toml
'';
build-system = [
cython
expandvars
setuptools
setuptools-scm
toml
wheel
];
dependencies = [ 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";
changelog = "https://github.com/ansible/pylibssh/releases/tag/v${version}";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ geluk ];
};
}
|