Merge pull request #333115 from ryand56/update/sherlock

sherlock: 0-unstable-2024-06-09 -> 0.15.0
This commit is contained in:
Donovan Glover
2024-08-14 04:12:52 +00:00
committed by GitHub
+15 -21
View File
@@ -1,21 +1,21 @@
{ 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 ];
};
}