about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2021-07-14 15:00:33 +0200
committerRobert Helgesson <robert@rycee.net>2021-07-14 15:23:42 +0200
commitd44ce53e070fc80bd5a2e1a1067fc6a0b008da8c (patch)
tree4aa4a87eb418a9a00e7b8c1980a89ff57e774e72
parentf40fa6014e3263a01d733f1aa4c4c8bb6b727938 (diff)
downloadnixlib-d44ce53e070fc80bd5a2e1a1067fc6a0b008da8c.tar
nixlib-d44ce53e070fc80bd5a2e1a1067fc6a0b008da8c.tar.gz
nixlib-d44ce53e070fc80bd5a2e1a1067fc6a0b008da8c.tar.bz2
nixlib-d44ce53e070fc80bd5a2e1a1067fc6a0b008da8c.tar.lz
nixlib-d44ce53e070fc80bd5a2e1a1067fc6a0b008da8c.tar.xz
nixlib-d44ce53e070fc80bd5a2e1a1067fc6a0b008da8c.tar.zst
nixlib-d44ce53e070fc80bd5a2e1a1067fc6a0b008da8c.zip
svtplay-dl: 4.0 -> 4.1
Also add basic install check.
-rw-r--r--pkgs/tools/misc/svtplay-dl/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/tools/misc/svtplay-dl/default.nix b/pkgs/tools/misc/svtplay-dl/default.nix
index 0e91b9c0e562..5514fd4e30f0 100644
--- a/pkgs/tools/misc/svtplay-dl/default.nix
+++ b/pkgs/tools/misc/svtplay-dl/default.nix
@@ -8,13 +8,13 @@ let
 
 in stdenv.mkDerivation rec {
   pname = "svtplay-dl";
-  version = "4.0";
+  version = "4.1";
 
   src = fetchFromGitHub {
     owner = "spaam";
     repo = "svtplay-dl";
     rev = version;
-    sha256 = "01q03v6a2rkw49z5nbm5mghm0qmmm12pq3amsiiiv5j6m9p0fdsy";
+    sha256 = "0b0q4k5aacw2nna5higr6sk5lsdn62lw2l9lccfy5s3m530banni";
   };
 
   pythonPaths = [ cryptography pyyaml requests ];
@@ -43,6 +43,13 @@ in stdenv.mkDerivation rec {
     sh scripts/run-tests.sh -2
   '';
 
+  doInstallCheck = true;
+  installCheckPhase = ''
+    runHook preInstallCheck
+    $out/bin/svtplay-dl --help > /dev/null
+    runHook postInstallCheck
+  '';
+
   meta = with lib; {
     homepage = "https://github.com/spaam/svtplay-dl";
     description = "Command-line tool to download videos from svtplay.se and other sites";