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.
48 lines
900 B
Nix
48 lines
900 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
cython,
|
|
openssl,
|
|
zlib,
|
|
libssh,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ssh-python";
|
|
version = "1.1.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ParallelSSH";
|
|
repo = "ssh-python";
|
|
tag = version;
|
|
hash = "sha256-kidz4uHT5C8TUROLGQUHihemYtwOoWZQNw7ElbwYKLM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
nativeBuildInputs = [
|
|
cython
|
|
];
|
|
buildInputs = [
|
|
openssl
|
|
zlib
|
|
libssh
|
|
];
|
|
|
|
env = {
|
|
SYSTEM_LIBSSH = true;
|
|
};
|
|
|
|
pythonImportsCheck = [ "ssh" ];
|
|
|
|
meta = {
|
|
description = "Python bindings for libssh C library";
|
|
homepage = "https://github.com/ParallelSSH/ssh-python";
|
|
changelog = "https://github.com/ParallelSSH/ssh-python/blob/${version}/Changelog.rst";
|
|
license = lib.licenses.lgpl21Only;
|
|
maintainers = with lib.maintainers; [ infinidoge ];
|
|
};
|
|
}
|