diff options
author | lucasew <lucas59356@gmail.com> | 2024-05-16 13:03:49 -0300 |
---|---|---|
committer | lucasew <lucas59356@gmail.com> | 2024-05-16 13:03:49 -0300 |
commit | 4d6e011773176acead319a9869fc7420a5872349 (patch) | |
tree | 5034b175c958efdaa50bcae21e5a455f4c66427a /pkgs/by-name/ab | |
parent | 25778548a851dd4d6b4e1939a5de90b078e9a1a8 (diff) |
ablog: move to by-name, fix build
Signed-off-by: lucasew <lucas59356@gmail.com>
Diffstat (limited to 'pkgs/by-name/ab')
-rw-r--r-- | pkgs/by-name/ab/ablog/package.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/by-name/ab/ablog/package.nix b/pkgs/by-name/ab/ablog/package.nix new file mode 100644 index 0000000000000..791c8598868cd --- /dev/null +++ b/pkgs/by-name/ab/ablog/package.nix @@ -0,0 +1,55 @@ +{ lib +, python3 +, fetchFromGitHub +, gitUpdater +}: + +python3.pkgs.buildPythonApplication rec { + pname = "ablog"; + version = "0.11.8"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "sunpy"; + repo = "ablog"; + rev = "v${version}"; + hash = "sha256-t3Vxw1IJoHuGqHv/0S4IoHwjWbtR6knXCBg4d0cM3lw="; + }; + + 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 ]; + }; +} |