python312Packages.ansible-pylibssh: refactor

This commit is contained in:
Fabian Affolter 2024-04-04 21:32:40 +02:00
parent 9d4dad105e
commit 628816c9f0

View File

@ -1,20 +1,20 @@
{ lib
, buildPythonPackage
, cython_3
, expandvars
, fetchPypi
, pythonOlder
, libssh
, cython
, wheel
, pythonOlder
, setuptools
, setuptools-scm
, toml
, expandvars
, wheel
}:
buildPythonPackage rec {
pname = "ansible-pylibssh";
version = "1.1.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.6";
@ -23,21 +23,21 @@ buildPythonPackage rec {
hash = "sha256-spaGux6dYvtUtpOdU6oN7SEn8IgBof2NpQSPvr+Zplg=";
};
# remove after https://github.com/ansible/pylibssh/pull/502 is merged
# Remove after https://github.com/ansible/pylibssh/pull/502 is merged
postPatch = ''
sed -i "/setuptools_scm_git_archive/d" pyproject.toml
'';
nativeBuildInputs = [
cython
wheel
build-system = [
cython_3
expandvars
setuptools
setuptools-scm
toml
expandvars
wheel
];
propagatedBuildInputs = [
dependencies = [
libssh
];
@ -48,6 +48,7 @@ buildPythonPackage rec {
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 ];
};