Unverified Commit 0c15b17e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

rstfmt: add meta.mainProgram (#432463)

parents 6b2fd58b 9094f975
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
{
  lib,
  python3,
  fetchFromGitHub,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
@@ -16,11 +16,10 @@ python3.pkgs.buildPythonApplication rec {
    hash = "sha256-zvmKgNzfxyWYHoaD+q84I48r1Mpp4kU4oIGAwMSRRlA=";
  };

  build-system = with python3.pkgs; [
    setuptools
  ];
  build-system = with python3.pkgs; [ setuptools ];

  dependencies = with python3.pkgs; [
    aiohttp
    black
    docutils
    sphinx
@@ -29,15 +28,14 @@ python3.pkgs.buildPythonApplication rec {
  # Project has no unittest just sample files
  doCheck = false;

  pythonImportsCheck = [
    "rstfmt"
  ];
  pythonImportsCheck = [ "rstfmt" ];

  meta = {
    description = "Formatter for reStructuredText";
    homepage = "https://github.com/dzhu/rstfmt";
    changelog = "https://github.com/dzhu/rstfmt/releases/tag/v${version}";
    changelog = "https://github.com/dzhu/rstfmt/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "rstfmt";
  };
}