about summary refs log tree commit diff
diff options
context:
space:
mode:
authordavidak <davidak@users.noreply.github.com>2021-08-02 06:23:28 +0200
committerGitHub <noreply@github.com>2021-08-02 06:23:28 +0200
commit1424f9ac4a350195c29f8106f109a19e1ef515a9 (patch)
tree6f8538fa47eaffe851d2032eca6f819ca622a231
parent08af2daa6d8e23b8991ccedf1ce4c53aed930ef6 (diff)
parent0e43bf2e5c1d7960edcfdce49df6fb4b30b322a5 (diff)
Merge pull request #132320 from alexfmpe/fix-coursera-dl
coursera-dl: fix tests
-rw-r--r--pkgs/applications/misc/coursera-dl/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/misc/coursera-dl/default.nix b/pkgs/applications/misc/coursera-dl/default.nix
index 954501c0b7fe3..13386699ecbf1 100644
--- a/pkgs/applications/misc/coursera-dl/default.nix
+++ b/pkgs/applications/misc/coursera-dl/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, glibcLocales, pandoc, python3 }:
+{ lib, fetchFromGitHub, fetchpatch, glibcLocales, pandoc, python3 }:
 
 let
   pythonPackages = python3.pkgs;
@@ -36,6 +36,13 @@ in pythonPackages.buildPythonApplication rec {
     py.test -k 'not test_get_credentials_with_keyring' .
   '';
 
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/coursera-dl/coursera-dl/pull/789.patch";
+      sha256 = "sha256:07ca6zdyw3ypv7yzfv2kzmjvv86h0rwzllcg0zky27qppqz917bv";
+    })
+  ];
+
   meta = with lib; {
     description = "CLI for downloading Coursera.org videos and naming them";
     homepage = "https://github.com/coursera-dl/coursera-dl";