Commit 4d6e0117 authored by lucasew's avatar lucasew
Browse files

ablog: move to by-name, fix build



Signed-off-by: default avatarlucasew <lucas59356@gmail.com>
parent 25778548
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
{ 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";
+0 −2
Original line number Diff line number Diff line
@@ -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 { };