depot/third_party/nixpkgs/pkgs/development/python-modules/ansible-pylibssh/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

52 lines
1.1 KiB
Nix

{
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 ];
};
}