iredis: modernize

This commit is contained in:
Hythera
2026-07-04 10:34:53 +02:00
parent 22b0bb0326
commit 6cc3d60de2
+12 -5
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";