{ lib, python3, fetchFromGitHub, gitUpdater, }: python3.pkgs.buildPythonApplication rec { pname = "ablog"; version = "0.11.11"; format = "pyproject"; src = fetchFromGitHub { owner = "sunpy"; repo = "ablog"; rev = "v${version}"; hash = "sha256-Hx4iLO+Of2o4tmIDS17SxyswbW2+KMoD4BjB4q1KU9M="; }; nativeBuildInputs = with python3.pkgs; [ setuptools setuptools-scm wheel ]; propagatedBuildInputs = with python3.pkgs; [ docutils feedgen invoke packaging python-dateutil sphinx watchdog ]; nativeCheckInputs = with python3.pkgs; [ pytestCheckHook defusedxml ]; pytestFlagsArray = [ "-W" "ignore::sphinx.deprecation.RemovedInSphinx90Warning" "--rootdir" "src/ablog" "-W" "ignore::sphinx.deprecation.RemovedInSphinx90Warning" # Ignore ImportError ]; passthru.updateScript = gitUpdater { rev-prefix = "v"; }; meta = with lib; { description = "ABlog for blogging with Sphinx"; mainProgram = "ablog"; homepage = "https://ablog.readthedocs.io/en/latest/"; license = licenses.mit; maintainers = with maintainers; [ rgrinberg ]; }; }