Commit 180cf46b authored by Mario Rodas's avatar Mario Rodas
Browse files
parent 5b07b100
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -6,18 +6,19 @@

python3.pkgs.buildPythonApplication rec {
  pname = "iredis";
  version = "1.14.1";
  version = "1.15.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "laixintao";
    repo = "iredis";
    rev = "refs/tags/v${version}";
    hash = "sha256-ojS2wtxggZPp73n9SjPRAzBlnF1ScK/pNVGvAYKmQ5Y=";
    rev = "v${version}";
    hash = "sha256-wfjr/FVmKgkP8FMKxw6e8U+lfZQZ2q52REC0mU8Xp7Q=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'packaging = "^23.0"' 'packaging = "*"' \
      --replace-fail 'wcwidth = "0.1.9"' 'wcwidth = "*"'
  '';

@@ -26,20 +27,21 @@ python3.pkgs.buildPythonApplication rec {
  ];

  propagatedBuildInputs = with python3.pkgs; [
    pygments
    click
    configobj
    mistune
    packaging
    pendulum
    prompt-toolkit
    pygments
    python-dateutil
    redis
    wcwidth
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
    freezegun
    pexpect
    pytestCheckHook
  ];

  pytestFlagsArray = [