at 24.05-pre 44 lines 935 B view raw
1{ lib 2, python3 3, fetchFromGitHub 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "doq"; 8 version = "0.10.0"; 9 pyproject = true; 10 11 src = fetchFromGitHub { 12 owner = "heavenshell"; 13 repo = "py-doq"; 14 rev = "refs/tags/${version}"; 15 hash = "sha256-iVu+5o8pZ5OhIzNItWbzUzqC3VQ6HCD7nP5gW/PVAMM="; 16 }; 17 18 nativeBuildInputs = with python3.pkgs; [ 19 setuptools 20 setuptools-generate 21 ]; 22 23 propagatedBuildInputs = with python3.pkgs; [ 24 jinja2 25 parso 26 toml 27 ]; 28 29 nativeCheckInputs = with python3.pkgs; [ 30 parameterized 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ "doq" ]; 35 36 meta = with lib; { 37 description = "Docstring generator for Python"; 38 homepage = "https://github.com/heavenshell/py-doq"; 39 changelog = "https://github.com/heavenshell/py-doq/releases/tag/${src.rev}"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ natsukium ]; 42 mainProgram = "doq"; 43 }; 44}