rstfmt: refactor

This commit is contained in:
Fabian Affolter 2025-08-10 23:42:49 +02:00 committed by GitHub
parent e8f47291c4
commit 9094f97592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";