From 07919ff7215444b0087832a6665cac14daf5d9d6 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 11 Jul 2023 11:30:30 +0900 Subject: [PATCH] doq: init at 0.9.1 --- pkgs/development/tools/misc/doq/default.nix | 38 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/tools/misc/doq/default.nix diff --git a/pkgs/development/tools/misc/doq/default.nix b/pkgs/development/tools/misc/doq/default.nix new file mode 100644 index 000000000000..bf7be5dda755 --- /dev/null +++ b/pkgs/development/tools/misc/doq/default.nix @@ -0,0 +1,38 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "doq"; + version = "0.9.1"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "heavenshell"; + repo = "py-doq"; + rev = "refs/tags/${version}"; + hash = "sha256-6ff7R/2Jo4jYm1hA70yopjklpKIMWlj7DH9eKxOlfgU="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + jinja2 + parso + toml + ]; + + nativeCheckInputs = with python3.pkgs; [ + parameterized + unittestCheckHook + ]; + + pythonImportsCheck = [ "doq" ]; + + meta = with lib; { + description = "Docstring generator for Python"; + homepage = "https://github.com/heavenshell/py-doq"; + changelog = "https://github.com/heavenshell/py-doq/releases/tag/${src.rev}"; + license = licenses.bsd3; + maintainers = with maintainers; [ natsukium ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ae7e3454538e..9a45a420316d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17996,6 +17996,8 @@ with pkgs; dbus-test-runner = callPackage ../development/tools/dbus-test-runner { }; + doq = callPackage ../development/tools/misc/doq { }; + phpunit = callPackage ../development/tools/misc/phpunit { }; teller = callPackage ../development/tools/teller { };