hyfetch: modernize

- add pythonImportsCheck

+18 -7
+17 -6
pkgs/tools/misc/hyfetch/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, typing-extensions, setuptools }: 2 3 - buildPythonPackage rec { 4 - pname = "HyFetch"; 5 version = "1.4.3"; 6 7 src = fetchFromGitHub { 8 repo = "hyfetch"; 9 - owner = "hykilpikonna"; 10 rev = "refs/tags/${version}"; 11 - sha256 = "sha256-ScdcV1ojtVz/OdR7k+y7Wj4VAne++8LY9Vz+wO3CJGI="; 12 }; 13 14 - propagatedBuildInputs = [ 15 typing-extensions 16 setuptools 17 ]; 18 19 meta = with lib; {
··· 1 + { lib 2 + , fetchFromGitHub 3 + , python3 4 + }: 5 6 + python3.pkgs.buildPythonApplication rec { 7 + pname = "hyfetch"; 8 version = "1.4.3"; 9 + format = "setuptools"; 10 11 src = fetchFromGitHub { 12 + owner = "hykilpikonna"; 13 repo = "hyfetch"; 14 rev = "refs/tags/${version}"; 15 + hash = "sha256-ScdcV1ojtVz/OdR7k+y7Wj4VAne++8LY9Vz+wO3CJGI="; 16 }; 17 18 + propagatedBuildInputs = with python3.pkgs; [ 19 typing-extensions 20 setuptools 21 + ]; 22 + 23 + # No test available 24 + doCheck = false; 25 + 26 + pythonImportsCheck = [ 27 + "hyfetch" 28 ]; 29 30 meta = with lib; {
+1 -1
pkgs/top-level/all-packages.nix
··· 36428 36429 hplipWithPlugin = hplip.override { withPlugin = true; }; 36430 36431 - hyfetch = python3Packages.callPackage ../tools/misc/hyfetch { }; 36432 36433 hyperfine = callPackage ../tools/misc/hyperfine { 36434 inherit (darwin.apple_sdk.frameworks) Security;
··· 36428 36429 hplipWithPlugin = hplip.override { withPlugin = true; }; 36430 36431 + hyfetch = callPackage ../tools/misc/hyfetch { }; 36432 36433 hyperfine = callPackage ../tools/misc/hyperfine { 36434 inherit (darwin.apple_sdk.frameworks) Security;