about summary refs log tree commit diff
path: root/pkgs/development/tools/rstfmt/default.nix
blob: e09b18a138d1ae10da71f286a67d703435bfb959 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "rstfmt";
  version = "0.0.13";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "dzhu";
    repo = "rstfmt";
    rev = "refs/tags/v${version}";
    hash = "sha256-SJRA14CfoT8XMt3hMB7cLdmuLwsJnBSwhKkD1pJvQCI=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    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";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}