mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
1e1685f116
Signed-off-by: lucasew <lucas59356@gmail.com>
56 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
}
|