about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDonovan Glover <donovan@dglover.co>2024-08-14 04:12:52 +0000
committerGitHub <noreply@github.com>2024-08-14 04:12:52 +0000
commit4cd1ed1658f9bd4bdf1e98cadf45308189cbda9c (patch)
tree4990b2230ec602ac551b0185ab9fd96d6be2ad5d
parentdca8e71bebfc4a302b4ac0f4a4141d2101e91a7e (diff)
parentd0d10b0a445afd8b9c756cbfaeefb8a3e5d82cd1 (diff)
Merge pull request #333115 from ryand56/update/sherlock
sherlock: 0-unstable-2024-06-09 -> 0.15.0
-rw-r--r--pkgs/by-name/sh/sherlock/package.nix36
1 files changed, 15 insertions, 21 deletions
diff --git a/pkgs/by-name/sh/sherlock/package.nix b/pkgs/by-name/sh/sherlock/package.nix
index cdf40eacedae4..9d96cc3da3828 100644
--- a/pkgs/by-name/sh/sherlock/package.nix
+++ b/pkgs/by-name/sh/sherlock/package.nix
@@ -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 ];
   };
 }