nixpkgs/pkgs/development/tools/rstfmt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
843 B
Nix
Raw Normal View History

2023-04-30 15:20:13 +00:00
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "rstfmt";
version = "0.0.14";
2024-03-28 10:05:29 +00:00
pyproject = true;
2023-04-30 15:20:13 +00:00
src = fetchFromGitHub {
owner = "dzhu";
repo = "rstfmt";
rev = "refs/tags/v${version}";
hash = "sha256-zvmKgNzfxyWYHoaD+q84I48r1Mpp4kU4oIGAwMSRRlA=";
2023-04-30 15:20:13 +00:00
};
2024-03-28 10:05:29 +00:00
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
2023-04-30 15:20:13 +00:00
black
docutils
sphinx
];
# Project has no unittest just sample files
doCheck = false;
pythonImportsCheck = [
"rstfmt"
];
meta = with lib; {
description = "A formatter for reStructuredText";
homepage = "https://github.com/dzhu/rstfmt";
2024-03-28 10:05:29 +00:00
changelog = "https://github.com/dzhu/rstfmt/releases/tag/v${version}";
2023-04-30 15:20:13 +00:00
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}