Unverified Commit 4cd1ed16 authored by Donovan Glover's avatar Donovan Glover Committed by GitHub
Browse files

Merge pull request #333115 from ryand56/update/sherlock

sherlock: 0-unstable-2024-06-09 -> 0.15.0
parents dca8e71b d0d10b0a
Loading
Loading
Loading
Loading
+15 −21
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, makeWrapper
, python3
, unstableGitUpdater
, poetry
{
  lib,
  fetchFromGitHub,
  makeWrapper,
  python3,
  poetry,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "sherlock";
  version = "0-unstable-2024-06-09";
  version = "0.15.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "sherlock-project";
    repo = "sherlock";
    rev = "d678908c00f16c7f6c44efc0357cef713fa96739";
    hash = "sha256-XAXDqbdHQta9OiupbPmmyp3TK1VLtDQ7CadsOei/6rs=";
    rev = "refs/tags/v${version}";
    hash = "sha256-+fQDvvwsLpiEvy+vC49AzlOA/KaKrhhpS97sZvFbpLA=";
  };

  patches = [
@@ -45,7 +45,7 @@ python3.pkgs.buildPythonApplication rec {
    runHook preInstall

    mkdir -p $out/bin $out/share
    cp -R ./sherlock $out/share
    cp -R ./sherlock_project $out/share

    runHook postInstall
  '';
@@ -53,7 +53,7 @@ python3.pkgs.buildPythonApplication rec {
  postFixup = ''
    makeWrapper ${python3.interpreter} $out/bin/sherlock \
      --add-flags "-m" \
      --add-flags "sherlock" \
      --add-flags "sherlock_project" \
      --prefix PYTHONPATH : "$PYTHONPATH:$out/share"
  '';

@@ -67,24 +67,18 @@ python3.pkgs.buildPythonApplication rec {
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    "stem"
  ];
  pythonRelaxDeps = [ "stem" ];

  pytestFlagsArray = [
    "-m"
    "'not online'"
  ];

  passthru.updateScript = unstableGitUpdater {
    hardcodeZeroVersion = true;
  };

  meta = with lib; {
  meta = {
    homepage = "https://sherlock-project.github.io/";
    description = "Hunt down social media accounts by username across social networks";
    license = licenses.mit;
    license = lib.licenses.mit;
    mainProgram = "sherlock";
    maintainers = with maintainers; [ applePrincess ];
    maintainers = with lib.maintainers; [ applePrincess ];
  };
}