nixpkgs/pkgs/development/python-modules/ssh2-python/default.nix
Martin Weinelt ae4a1a485a
treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

48 lines
915 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cython,
openssl,
zlib,
libssh2,
}:
buildPythonPackage rec {
pname = "ssh2-python";
version = "1.1.2.post1";
format = "setuptools";
src = fetchFromGitHub {
owner = "ParallelSSH";
repo = "ssh2-python";
tag = version;
hash = "sha256-LHIj0lSAMJ+tUvIyMl0xT/i0N4U+HbiiD62WIXzboMU=";
};
build-system = [ setuptools ];
nativeBuildInputs = [
cython
];
buildInputs = [
openssl
zlib
libssh2
];
env = {
SYSTEM_LIBSSH2 = true;
};
pythonImportsCheck = [ "ssh2" ];
meta = {
description = "Python bindings for libssh2 C library";
homepage = "https://github.com/ParallelSSH/ssh2-python";
changelog = "https://github.com/ParallelSSH/ssh2-python/blob/${src.tag}/Changelog.rst";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ infinidoge ];
};
}