ablog: move to by-name, fix build

Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
lucasew 2024-05-16 13:03:49 -03:00
parent 25778548a8
commit 4d6e011773
2 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,7 @@
{ lib
, python3
, fetchPypi
, fetchFromGitHub
, gitUpdater
}:
python3.pkgs.buildPythonApplication rec {
@ -8,9 +9,11 @@ python3.pkgs.buildPythonApplication rec {
version = "0.11.8";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-PpNBfa4g14l8gm9+PxOFc2NDey031D7Ohutx2OGUeak=";
src = fetchFromGitHub {
owner = "sunpy";
repo = "ablog";
rev = "v${version}";
hash = "sha256-t3Vxw1IJoHuGqHv/0S4IoHwjWbtR6knXCBg4d0cM3lw=";
};
nativeBuildInputs = with python3.pkgs; [
@ -31,6 +34,7 @@ python3.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
defusedxml
];
pytestFlagsArray = [
@ -39,6 +43,8 @@ python3.pkgs.buildPythonApplication rec {
"-W" "ignore::sphinx.deprecation.RemovedInSphinx90Warning" # Ignore ImportError
];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = with lib; {
description = "ABlog for blogging with Sphinx";
mainProgram = "ablog";

View File

@ -1501,8 +1501,6 @@ with pkgs;
abduco = callPackage ../tools/misc/abduco { };
ablog = callPackage ../applications/misc/ablog { };
acct = callPackage ../tools/system/acct { };
accuraterip-checksum = callPackage ../tools/audio/accuraterip-checksum { };