Files
nixpkgs/pkgs/development/python-modules/ansible-pylibssh/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1017 B
Nix

{
lib,
buildPythonPackage,
cython,
expandvars,
fetchPypi,
libssh,
pythonOlder,
setuptools,
setuptools-scm,
toml,
wheel,
}:
buildPythonPackage rec {
pname = "ansible-pylibssh";
version = "1.2.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-dT5XDc3OtquONi6RzA1Zk77ryT0oe4gXjbVVCfZCOrU=";
};
# 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 = {
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 = lib.licenses.lgpl21Plus;
};
}