about summary refs log tree commit diff
path: root/pkgs/by-name/do/docify/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/do/docify/package.nix')
-rw-r--r--pkgs/by-name/do/docify/package.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/do/docify/package.nix b/pkgs/by-name/do/docify/package.nix
new file mode 100644
index 0000000000000..5d9991752c4c8
--- /dev/null
+++ b/pkgs/by-name/do/docify/package.nix
@@ -0,0 +1,41 @@
+{
+  lib,
+  python3Packages,
+  fetchFromGitHub,
+}:
+
+python3Packages.buildPythonApplication rec {
+  pname = "docify";
+  version = "1.0.0";
+  pyproject = true;
+
+  src = fetchFromGitHub {
+    owner = "AThePeanut4";
+    repo = "docify";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-pt35Kw0kaZsIGTutXPhjdp8czGtWrSUFWMV3NyFQ/NM=";
+  };
+
+  build-system = with python3Packages; [
+    pdm-backend
+  ];
+
+  dependencies = with python3Packages; [
+    libcst
+    tqdm
+  ];
+
+  pythonImportsCheck = [ "docify" ];
+
+  # upstream has no tests
+  doCheck = false;
+
+  meta = {
+    changelog = "https://github.com/AThePeanut4/docify/releases/tag/v${version}";
+    description = "Script to add docstrings to Python type stubs using reflection";
+    homepage = "https://github.com/AThePeanut4/docify";
+    license = lib.licenses.mit;
+    mainProgram = "docify";
+    maintainers = with lib.maintainers; [ dotlambda ];
+  };
+}