depot/third_party/nixpkgs/pkgs/development/tools/rstfmt/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
841 B
Nix

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