depot/third_party/nixpkgs/pkgs/development/tools/misc/doq/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

38 lines
828 B
Nix

{ 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 ];
};
}