nixpkgs/pkgs/by-name/ab/ablog/package.nix

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

56 lines
1.1 KiB
Nix
Raw Normal View History

2022-03-22 01:09:24 +01:00
{ lib
, python3
, 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
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
defusedxml
2022-03-22 01:09:24 +01:00
];
2023-08-11 23:13:46 +02:00
pytestFlagsArray = [
"-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
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
2022-03-22 01:09:24 +01:00
meta = with lib; {
description = "ABlog for blogging with Sphinx";
mainProgram = "ablog";
2022-03-22 01:09:24 +01:00
homepage = "https://ablog.readthedocs.io/en/latest/";
license = licenses.mit;
maintainers = with maintainers; [ rgrinberg ];
};
}