about summary refs log tree commit diff
path: root/pkgs/tools/misc/hyfetch
diff options
context:
space:
mode:
authorLily Foster <lily@lily.flowers>2022-08-01 18:05:11 -0400
committerLily Foster <lily@lily.flowers>2022-08-01 18:05:11 -0400
commit73b573ce6111fc7f2102c22c916393cc1a8c8918 (patch)
tree54bb6eae44ba07969a6949cc539cf61f40d126bf /pkgs/tools/misc/hyfetch
parent93933df2f3a7e7c84867dad5a44705ffee58a25c (diff)
hyfetch: 1.1.2 -> 1.3.0
Diffstat (limited to 'pkgs/tools/misc/hyfetch')
-rw-r--r--pkgs/tools/misc/hyfetch/default.nix26
1 files changed, 12 insertions, 14 deletions
diff --git a/pkgs/tools/misc/hyfetch/default.nix b/pkgs/tools/misc/hyfetch/default.nix
index 8a346855a7b41..80582524eee29 100644
--- a/pkgs/tools/misc/hyfetch/default.nix
+++ b/pkgs/tools/misc/hyfetch/default.nix
@@ -1,25 +1,26 @@
-{ lib, python3Packages, fetchFromGitHub }:
+{ lib, buildPythonPackage, fetchFromGitHub, typing-extensions, setuptools }:
 
-python3Packages.buildPythonPackage rec {
+buildPythonPackage rec {
   pname = "HyFetch";
-  version = "1.1.2";
+  version = "1.3.0";
 
   src = fetchFromGitHub {
     repo = "hyfetch";
     owner = "hykilpikonna";
-    rev = "92623417f90f0cf006c0dd2adcf3f24f4308fe0c";
-    sha256 = "sha256-26L2qt+RarRf3+L6+mMy/ZJNVBVirKs5oEclEsImtC0=";
+    rev = version;
+    sha256 = "sha256-8Mp3MV9HVzXzT/W6F/lD34tT0uOgqyydg31PlR3sMUA=";
   };
 
-  propagatedBuildInputs = with python3Packages; [
+  # TODO: Remove with next release bump since it has been fixed upstream (hykilpikonna/hyfetch@d797a8c)
+  postPatch = ''
+    chmod +x neofetch
+  '';
+
+  propagatedBuildInputs = [
     typing-extensions
     setuptools
   ];
 
-  preCheck = ''
-    rm -rf hyfetch/color_scale_numpy.py
-  '';
-
   meta = with lib; {
     description = "neofetch with pride flags <3";
     longDescription = ''
@@ -34,9 +35,6 @@ python3Packages.buildPythonPackage rec {
     homepage = "https://github.com/hykilpikonna/HyFetch";
     license = licenses.mit;
     mainProgram = "hyfetch";
-    maintainers = [
-      maintainers.yisuidenghua
-    ];
-
+    maintainers = with maintainers; [ yisuidenghua ];
   };
 }