nixpkgs/pkgs/applications/misc/ablog/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1016 B
Nix
Raw Normal View History

2022-03-22 00:09:24 +00:00
{ lib
, python3
2023-05-25 18:37:59 +00:00
, fetchPypi
2022-03-22 00:09:24 +00:00
}:
2023-08-11 21:13:46 +00:00
python3.pkgs.buildPythonApplication rec {
2022-03-22 00:09:24 +00:00
pname = "ablog";
2024-01-03 09:06:56 +00:00
version = "0.11.6";
2023-08-11 21:13:46 +00:00
format = "pyproject";
2022-03-22 00:09:24 +00:00
src = fetchPypi {
inherit pname version;
2024-01-03 09:06:56 +00:00
hash = "sha256-fV4W4AaiqyruIz3OQ7/lGkMPMKmyiFa+fdU2QeeQCvs=";
2022-03-22 00:09:24 +00:00
};
2023-08-11 21:13:46 +00:00
nativeBuildInputs = with python3.pkgs; [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = with python3.pkgs; [
docutils
2022-03-22 00:09:24 +00:00
feedgen
invoke
2023-08-11 21:13:46 +00:00
packaging
2022-03-22 00:09:24 +00:00
python-dateutil
2023-08-11 21:13:46 +00:00
sphinx
watchdog
2022-03-22 00:09:24 +00:00
];
2023-08-11 21:13:46 +00:00
nativeCheckInputs = with python3.pkgs; [
2022-03-22 00:09:24 +00:00
pytestCheckHook
];
2023-08-11 21:13:46 +00:00
pytestFlagsArray = [
"-W" "ignore::sphinx.deprecation.RemovedInSphinx90Warning"
2023-08-11 21:13:46 +00:00
"--rootdir" "src/ablog"
2024-01-03 09:06:56 +00:00
"-W" "ignore::sphinx.deprecation.RemovedInSphinx90Warning" # Ignore ImportError
2023-08-11 21:13:46 +00:00
];
2022-03-22 00:09:24 +00:00
meta = with lib; {
description = "ABlog for blogging with Sphinx";
mainProgram = "ablog";
2022-03-22 00:09:24 +00:00
homepage = "https://ablog.readthedocs.io/en/latest/";
license = licenses.mit;
maintainers = with maintainers; [ rgrinberg ];
};
}