2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cython,
|
|
|
|
expandvars,
|
|
|
|
fetchPypi,
|
|
|
|
libssh,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
toml,
|
|
|
|
wheel,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansible-pylibssh";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.2.0.post4";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-brnSrzSnumK32/mEON0l0iSPdoYrFwYmBc4MT7WcrX8=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Remove after https://github.com/ansible/pylibssh/pull/502 is merged
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "/setuptools_scm_git_archive/d" pyproject.toml
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-10-09 19:29:22 +00:00
|
|
|
cython
|
2024-04-21 15:54:59 +00:00
|
|
|
expandvars
|
2023-10-09 19:29:22 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
toml
|
2024-04-21 15:54:59 +00:00
|
|
|
wheel
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [ libssh ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "pylibsshext" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings to client functionality of libssh specific to Ansible use case";
|
|
|
|
homepage = "https://github.com/ansible/pylibssh";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/ansible/pylibssh/releases/tag/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ geluk ];
|
|
|
|
};
|
|
|
|
}
|