rich-cli: fix build

+19 -11
+19 -11
pkgs/by-name/ri/rich-cli/package.nix
··· 1 1 { 2 2 lib, 3 + python3Packages, 3 4 fetchFromGitHub, 4 5 fetchpatch, 5 - python3, 6 + versionCheckHook, 7 + nix-update-script, 6 8 }: 7 9 8 - python3.pkgs.buildPythonApplication rec { 10 + python3Packages.buildPythonApplication rec { 9 11 pname = "rich-cli"; 10 12 version = "1.8.0"; 11 13 pyproject = true; ··· 32 34 ]; 33 35 34 36 pythonRelaxDeps = [ 37 + "rich" 35 38 "textual" 36 39 ]; 37 40 38 - build-system = with python3.pkgs; [ 41 + build-system = with python3Packages; [ 39 42 poetry-core 40 43 ]; 41 44 42 - nativeBuildInputs = with python3.pkgs; [ 43 - ]; 44 - 45 - dependencies = with python3.pkgs; [ 45 + dependencies = with python3Packages; [ 46 46 click 47 47 requests 48 48 rich ··· 50 50 textual 51 51 ]; 52 52 53 - pythonImportsCheck = [ 54 - "rich_cli" 53 + pythonImportsCheck = [ "rich_cli" ]; 54 + 55 + nativeCheckInputs = [ 56 + versionCheckHook 55 57 ]; 58 + versionCheckProgram = "${placeholder "out"}/bin/rich"; 59 + versionCheckProgramArg = "--version"; 56 60 57 - meta = with lib; { 61 + passthru = { 62 + updateScript = nix-update-script { }; 63 + }; 64 + 65 + meta = { 58 66 description = "Command Line Interface to Rich"; 59 67 homepage = "https://github.com/Textualize/rich-cli"; 60 68 changelog = "https://github.com/Textualize/rich-cli/releases/tag/v${version}"; 61 - license = licenses.mit; 69 + license = lib.licenses.mit; 62 70 maintainers = [ ]; 63 71 mainProgram = "rich"; 64 72 };