about summary refs log tree commit diff
path: root/pkgs/misc/rich-cli
diff options
context:
space:
mode:
authorJoel Koen <mail@joelkoen.com>2023-02-27 17:32:47 +1000
committerJoel Koen <mail@joelkoen.com>2023-02-27 17:32:47 +1000
commit9f1539702dd9603a5f4074e43aeb7696d8d94a4e (patch)
treed76b36387d378ba3ee7628ca6f71199fecff0405 /pkgs/misc/rich-cli
parentb5889f3dceedefb854e2d80f4cd6792c90ef55dd (diff)
rich-cli: fix dependency versions
Diffstat (limited to 'pkgs/misc/rich-cli')
-rw-r--r--pkgs/misc/rich-cli/default.nix31
1 files changed, 28 insertions, 3 deletions
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