From 9094f9759253a0889dd960b8afe5d474f1ad0f33 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Aug 2025 23:42:49 +0200 Subject: [PATCH] rstfmt: refactor --- pkgs/by-name/rs/rstfmt/package.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/rs/rstfmt/package.nix b/pkgs/by-name/rs/rstfmt/package.nix index 41ef77bf20b6..657c0e9c1141 100644 --- a/pkgs/by-name/rs/rstfmt/package.nix +++ b/pkgs/by-name/rs/rstfmt/package.nix @@ -1,7 +1,7 @@ { 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,14 +28,12 @@ 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";