2022-03-22 01:09:24 +01:00
|
|
|
{ lib
|
|
|
|
, python3
|
2024-05-16 18:03:49 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gitUpdater
|
2022-03-22 01:09:24 +01:00
|
|
|
}:
|
|
|
|
|
2023-08-11 23:13:46 +02:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-03-22 01:09:24 +01:00
|
|
|
pname = "ablog";
|
2024-08-13 18:20:01 +02:00
|
|
|
version = "0.11.11";
|
2023-08-11 23:13:46 +02:00
|
|
|
format = "pyproject";
|
2022-03-22 01:09:24 +01:00
|
|
|
|
2024-05-16 18:03:49 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sunpy";
|
|
|
|
repo = "ablog";
|
|
|
|
rev = "v${version}";
|
2024-08-13 18:20:01 +02:00
|
|
|
hash = "sha256-Hx4iLO+Of2o4tmIDS17SxyswbW2+KMoD4BjB4q1KU9M=";
|
2022-03-22 01:09:24 +01:00
|
|
|
};
|
|
|
|
|
2023-08-11 23:13:46 +02:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
docutils
|
2022-03-22 01:09:24 +01:00
|
|
|
feedgen
|
|
|
|
invoke
|
2023-08-11 23:13:46 +02:00
|
|
|
packaging
|
2022-03-22 01:09:24 +01:00
|
|
|
python-dateutil
|
2023-08-11 23:13:46 +02:00
|
|
|
sphinx
|
|
|
|
watchdog
|
2022-03-22 01:09:24 +01:00
|
|
|
];
|
|
|
|
|
2023-08-11 23:13:46 +02:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-03-22 01:09:24 +01:00
|
|
|
pytestCheckHook
|
2024-05-16 18:03:49 +02:00
|
|
|
defusedxml
|
2022-03-22 01:09:24 +01:00
|
|
|
];
|
|
|
|
|
2023-08-11 23:13:46 +02:00
|
|
|
pytestFlagsArray = [
|
2023-12-16 21:19:38 +01:00
|
|
|
"-W" "ignore::sphinx.deprecation.RemovedInSphinx90Warning"
|
2023-08-11 23:13:46 +02:00
|
|
|
"--rootdir" "src/ablog"
|
2024-01-03 10:06:56 +01:00
|
|
|
"-W" "ignore::sphinx.deprecation.RemovedInSphinx90Warning" # Ignore ImportError
|
2023-08-11 23:13:46 +02:00
|
|
|
];
|
2022-03-22 01:09:24 +01:00
|
|
|
|
2024-05-16 18:03:49 +02:00
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
|
2022-03-22 01:09:24 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "ABlog for blogging with Sphinx";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "ablog";
|
2022-03-22 01:09:24 +01:00
|
|
|
homepage = "https://ablog.readthedocs.io/en/latest/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rgrinberg ];
|
|
|
|
};
|
|
|
|
}
|