summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-01-16 09:41:17 +0000
committerGitHub <noreply@github.com>2018-01-16 09:41:17 +0000
commit1c9d59945e8ba22feea1e4f0991b7ca3104920b9 (patch)
tree0f6723177fbc2c84540406af870352d74fae5500
parent91e99899117c8712f5523dbaed4c275900922b43 (diff)
parent03b43c0325f10121cfc27d42cbdca91b0752fa30 (diff)
downloadnixpkgs-1c9d59945e8ba22feea1e4f0991b7ca3104920b9.tar
nixpkgs-1c9d59945e8ba22feea1e4f0991b7ca3104920b9.tar.gz
nixpkgs-1c9d59945e8ba22feea1e4f0991b7ca3104920b9.tar.bz2
nixpkgs-1c9d59945e8ba22feea1e4f0991b7ca3104920b9.tar.lz
nixpkgs-1c9d59945e8ba22feea1e4f0991b7ca3104920b9.tar.xz
nixpkgs-1c9d59945e8ba22feea1e4f0991b7ca3104920b9.tar.zst
nixpkgs-1c9d59945e8ba22feea1e4f0991b7ca3104920b9.zip
Merge pull request #33917 from ashgillman/fix-wakatime
wakatime: don't run check phase
-rw-r--r--pkgs/tools/misc/wakatime/default.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/tools/misc/wakatime/default.nix b/pkgs/tools/misc/wakatime/default.nix
index c1091d47c5a..ba760496a72 100644
--- a/pkgs/tools/misc/wakatime/default.nix
+++ b/pkgs/tools/misc/wakatime/default.nix
@@ -1,16 +1,27 @@
-{ stdenv, buildPythonApplication, fetchFromGitHub }:
+{ stdenv, python3Packages, fetchFromGitHub, glibcLocales }:
 
+with python3Packages;
 buildPythonApplication rec {
   name = "wakatime-${version}";
-  version = "10.0.1";
+  version = "10.1.0";
 
   src = fetchFromGitHub {
     owner = "wakatime";
     repo = "wakatime";
     rev = version;
-    sha256 = "1bg8fzd3rdc6na0a7z1d55m2gbnfq6d72mf2jlyzc817r6dr4bfx";
+    sha256 = "0mq1b5hwm03jz1mhlfiwi8k5r6556r1nfv9h7qs3y32zrj9mvifv";
   };
 
+  # needs more dependencies from https://github.com/wakatime/wakatime/blob/191b302bfb5f272ae928c6d3867d06f3dfcba4a8/dev-requirements.txt
+  # especially nose-capturestderr, which we do not package yet.
+  doCheck = false;
+  checkInputs = [ mock testfixtures pytest glibcLocales ];
+
+  checkPhase = ''
+    export HOME=$(mktemp -d) LC_ALL=en_US.utf-8
+    pytest tests
+  '';
+
   meta = with stdenv.lib; {
     inherit (src.meta) homepage;
     description = "WakaTime command line interface";