Unverified Commit 9f92a843 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

gallery-dl: move to by-name, tweak, 1.28.1 -> 1.28.2 (#367218)

parents 24726a1d 11aa8079
Loading
Loading
Loading
Loading
+22 −18
Original line number Diff line number Diff line
{
  lib,
  buildPythonApplication,
  fetchPypi,
  requests,
  fetchFromGitHub,
  gitUpdater,
  yt-dlp,
  pytestCheckHook,
  nix-update-script,
  python3Packages,
}:

buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "gallery-dl";
  version = "1.28.1";
  format = "setuptools";

  src = fetchPypi {
    inherit version;
    pname = "gallery_dl";
    hash = "sha256-1UxLZZoDJsaiPqb+zaiWb9TyQIknKlrz6RN21B0sNe4=";
  version = "1.28.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mikf";
    repo = "gallery-dl";
    rev = "v${version}";
    hash = "sha256-AVycp24wGhit9JVE0b+didc2GRnB+EQNnJ3y9a5dMQw=";
  };

  propagatedBuildInputs = [
    requests
  build-system = [ python3Packages.setuptools ];

  dependencies = [
    python3Packages.requests
    yt-dlp
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [ python3Packages.pytestCheckHook ];

  disabledTests = [
    # requires network access
@@ -42,7 +43,7 @@ buildPythonApplication rec {

  pythonImportsCheck = [ "gallery_dl" ];

  passthru.updateScript = nix-update-script { };
  passthru.updateScript = gitUpdater { rev-prefix = "v"; };

  meta = {
    description = "Command-line program to download image-galleries and -collections from several image hosting sites";
@@ -50,6 +51,9 @@ buildPythonApplication rec {
    changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.gpl2Only;
    mainProgram = "gallery-dl";
    maintainers = with lib.maintainers; [ dawidsowa ];
    maintainers = [
      lib.maintainers.dawidsowa
      lib.maintainers.lucasew
    ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -3417,8 +3417,6 @@ with pkgs;
  uniscribe = callPackage ../tools/text/uniscribe { };
  gallery-dl = python3Packages.callPackage ../applications/misc/gallery-dl { };
  gandi-cli = python3Packages.callPackage ../tools/networking/gandi-cli { };
  gaphor = python3Packages.callPackage ../tools/misc/gaphor { };