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

View File

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