iredis: modernize

(cherry picked from commit 6cc3d60de2)
This commit is contained in:
Hythera 2026-07-01 12:09:36 +02:00 committed by github-actions[bot]
commit e0526ede6e

View file

@ -1,14 +1,16 @@
{
lib,
stdenv,
python3,
python3Packages,
fetchFromGitHub,
versionCheckHook,
}:
python3.pkgs.buildPythonApplication (finalAttrs: {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "iredis";
version = "1.16.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "laixintao";
@ -22,11 +24,11 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
"redis"
];
nativeBuildInputs = with python3.pkgs; [
build-system = with python3Packages; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
dependencies = with python3Packages; [
click
configobj
mistune
@ -37,7 +39,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
redis
];
nativeCheckInputs = with python3.pkgs; [
nativeCheckInputs = with python3Packages; [
freezegun
pexpect
pytestCheckHook
@ -62,6 +64,11 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
pythonImportsCheck = [ "iredis" ];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
meta = {
description = "Terminal Client for Redis with AutoCompletion and Syntax Highlighting";
changelog = "https://github.com/laixintao/iredis/blob/${finalAttrs.src.tag}/CHANGELOG.md";