2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "doq";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.10.0";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "heavenshell";
|
|
|
|
repo = "py-doq";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-iVu+5o8pZ5OhIzNItWbzUzqC3VQ6HCD7nP5gW/PVAMM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
setuptools-generate
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
jinja2
|
|
|
|
parso
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
|
|
parameterized
|
2023-10-19 13:55:26 +00:00
|
|
|
pytestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "doq" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Docstring generator for Python";
|
|
|
|
homepage = "https://github.com/heavenshell/py-doq";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/heavenshell/py-doq/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
2023-10-19 13:55:26 +00:00
|
|
|
mainProgram = "doq";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|