blob: 26dbb4413a9ecb60a6d2e92733a01220c326133c (
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.2.0.post4";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-brnSrzSnumK32/mEON0l0iSPdoYrFwYmBc4MT7WcrX8=";
};
# 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 ];
};
}
|