Unverified Commit c55e8e47 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

rich-cli: fix build (#400831)

parents a5424d37 4e6de406
Loading
Loading
Loading
Loading
+19 −11
Original line number Diff line number Diff line
{
  lib,
  python3Packages,
  fetchFromGitHub,
  fetchpatch,
  python3,
  versionCheckHook,
  nix-update-script,
}:

python3.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "rich-cli";
  version = "1.8.0";
  pyproject = true;
@@ -32,17 +34,15 @@ python3.pkgs.buildPythonApplication rec {
  ];

  pythonRelaxDeps = [
    "rich"
    "textual"
  ];

  build-system = with python3.pkgs; [
  build-system = with python3Packages; [
    poetry-core
  ];

  nativeBuildInputs = with python3.pkgs; [
  ];

  dependencies = with python3.pkgs; [
  dependencies = with python3Packages; [
    click
    requests
    rich
@@ -50,15 +50,23 @@ python3.pkgs.buildPythonApplication rec {
    textual
  ];

  pythonImportsCheck = [
    "rich_cli"
  pythonImportsCheck = [ "rich_cli" ];

  nativeCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgram = "${placeholder "out"}/bin/rich";
  versionCheckProgramArg = "--version";

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = with lib; {
  meta = {
    description = "Command Line Interface to Rich";
    homepage = "https://github.com/Textualize/rich-cli";
    changelog = "https://github.com/Textualize/rich-cli/releases/tag/v${version}";
    license = licenses.mit;
    license = lib.licenses.mit;
    maintainers = [ ];
    mainProgram = "rich";
  };