about summary refs log tree commit diff
path: root/pkgs/development/tools/rstfmt
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-04-30 17:20:13 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2023-04-30 17:20:13 +0200
commit559e1cae34b02e915b42334c654cb701be4bf5ad (patch)
tree4d57be9ed4bf10b5cb92126730e783998ba0ae51 /pkgs/development/tools/rstfmt
parentfe2ecaf706a5907b5e54d979fbde4924d84b65fc (diff)
downloadnixlib-559e1cae34b02e915b42334c654cb701be4bf5ad.tar
nixlib-559e1cae34b02e915b42334c654cb701be4bf5ad.tar.gz
nixlib-559e1cae34b02e915b42334c654cb701be4bf5ad.tar.bz2
nixlib-559e1cae34b02e915b42334c654cb701be4bf5ad.tar.lz
nixlib-559e1cae34b02e915b42334c654cb701be4bf5ad.tar.xz
nixlib-559e1cae34b02e915b42334c654cb701be4bf5ad.tar.zst
nixlib-559e1cae34b02e915b42334c654cb701be4bf5ad.zip
rstfmt: init at 0.0.13
Diffstat (limited to 'pkgs/development/tools/rstfmt')
-rw-r--r--pkgs/development/tools/rstfmt/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/rstfmt/default.nix b/pkgs/development/tools/rstfmt/default.nix
new file mode 100644
index 000000000000..e09b18a138d1
--- /dev/null
+++ b/pkgs/development/tools/rstfmt/default.nix
@@ -0,0 +1,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 ];
+  };
+}