diff options
| author | Karel Kočí <cynerd@email.cz> | 2026-03-31 17:46:42 +0200 |
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2026-03-31 17:46:42 +0200 |
| commit | d5ec7b775888827089a668aea58244b2ad4a1e70 (patch) | |
| tree | f83260efda4b3c478855484d1451a8858bc23b9c /pkgs/docrstfmt/default.nix | |
| parent | 5f8f3edbf69f4735f302fc5a749dba2928ce6582 (diff) | |
| download | nixos-personal-master.tar.gz nixos-personal-master.tar.bz2 nixos-personal-master.zip | |
Diffstat (limited to 'pkgs/docrstfmt/default.nix')
| -rw-r--r-- | pkgs/docrstfmt/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/docrstfmt/default.nix b/pkgs/docrstfmt/default.nix new file mode 100644 index 0000000..9d2761a --- /dev/null +++ b/pkgs/docrstfmt/default.nix @@ -0,0 +1,52 @@ +{ + lib, + python3, + fetchFromGitHub, +}: +python3.pkgs.buildPythonApplication rec { + pname = "docstrfmt"; + version = "2.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "LilSpazJoekp"; + repo = "docstrfmt"; + tag = "v${version}"; + hash = "sha256-DoxRBRCHl/F7nvUiA4+c3DtxggzH9hHtHuoJsyPCA94="; + }; + + build-system = [ + python3.pkgs.flit-core + ]; + + dependencies = with python3.pkgs; [ + black + click + coverage + docutils + libcst + platformdirs + roman + sphinx + tabulate + types-docutils + ]; + + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + pytest-aiohttp + ]; + + pythonImportsCheck = [ + "docstrfmt" + ]; + + meta = { + description = "Formatter for reStructuredText"; + homepage = "https://github.com/LilSpazJoekp/docstrfmt"; + changelog = "https://github.com/LilSpazJoekp/docstrfmt/blob/${src.tag}/CHANGES.rst"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [doronbehar]; + mainProgram = "docstrfmt"; + }; +} |
