Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, python3
3, fetchFromGitHub
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "rstfmt";
8 version = "0.0.14";
9 pyproject = true;
10
11 src = fetchFromGitHub {
12 owner = "dzhu";
13 repo = "rstfmt";
14 rev = "refs/tags/v${version}";
15 hash = "sha256-zvmKgNzfxyWYHoaD+q84I48r1Mpp4kU4oIGAwMSRRlA=";
16 };
17
18 build-system = with python3.pkgs; [
19 setuptools
20 ];
21
22 dependencies = with python3.pkgs; [
23 black
24 docutils
25 sphinx
26 ];
27
28 # Project has no unittest just sample files
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "rstfmt"
33 ];
34
35 meta = with lib; {
36 description = "Formatter for reStructuredText";
37 homepage = "https://github.com/dzhu/rstfmt";
38 changelog = "https://github.com/dzhu/rstfmt/releases/tag/v${version}";
39 license = licenses.mit;
40 maintainers = with maintainers; [ fab ];
41 };
42}