587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|