nixpkgs/pkgs/by-name/ab/ablog/package.nix
lucasew 1e1685f116 ablog: 0.11.8 -> 0.11.10
Signed-off-by: lucasew <lucas59356@gmail.com>
2024-05-16 13:04:30 -03:00

56 lines
1.1 KiB
Nix

{ lib
, python3
, fetchFromGitHub
, gitUpdater
}:
python3.pkgs.buildPythonApplication rec {
pname = "ablog";
version = "0.11.10";
format = "pyproject";
src = fetchFromGitHub {
owner = "sunpy";
repo = "ablog";
rev = "v${version}";
hash = "sha256-8NyFLGtMJLUkojEhWpWNZz3zlfgGVgSvgk4dDEz1jzs=";
};
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 ];
};
}