From 9f1539702dd9603a5f4074e43aeb7696d8d94a4e Mon Sep 17 00:00:00 2001 From: Joel Koen Date: Mon, 27 Feb 2023 17:32:47 +1000 Subject: rich-cli: fix dependency versions --- pkgs/misc/rich-cli/default.nix | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'pkgs/misc') diff --git a/pkgs/misc/rich-cli/default.nix b/pkgs/misc/rich-cli/default.nix index de4bee278c796..0b9c1f4984cb3 100644 --- a/pkgs/misc/rich-cli/default.nix +++ b/pkgs/misc/rich-cli/default.nix @@ -3,7 +3,32 @@ , python3 }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + packageOverrides = self: super: { + rich = super.rich.overrideAttrs (old: rec { + version = "12.4.0"; + src = fetchFromGitHub { + owner = "Textualize"; + repo = "rich"; + rev = "refs/tags/v${version}"; + hash = "sha256-ryJTusUNpvNF2031ICJWK8ScxHIh+LrXYg7nd0ph4aQ="; + }; + }); + textual = super.textual.overrideAttrs (old: rec { + version = "0.1.18"; + src = fetchFromGitHub { + owner = "Textualize"; + repo = "textual"; + rev = "refs/tags/v${version}"; + hash = "sha256-XVmbt8r5HL8r64ISdJozmM+9HuyvqbpdejWICzFnfiw="; + }; + }); + }; + }; +in + +python.pkgs.buildPythonApplication rec { pname = "rich-cli"; version = "1.8.0"; format = "pyproject"; @@ -15,11 +40,11 @@ python3.pkgs.buildPythonApplication rec { sha256 = "sha256-mV5b/J9wX9niiYtlmAUouaAm9mY2zTtDmex7FNWcezQ="; }; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python.pkgs; [ poetry-core ]; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ rich click requests -- cgit 1.4.1