2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
|
2016-05-08 02:52:57 +00:00
|
|
|
|
2018-01-16 08:10:22 +00:00
|
|
|
with python3Packages;
|
2017-05-26 11:46:15 +00:00
|
|
|
buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "wakatime";
|
2020-02-29 01:02:03 +00:00
|
|
|
version = "13.0.7";
|
2016-05-08 02:52:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wakatime";
|
2017-05-26 11:46:15 +00:00
|
|
|
repo = "wakatime";
|
|
|
|
rev = version;
|
2020-02-29 01:02:03 +00:00
|
|
|
sha256 = "1rnapzaabg962wxrmfcq9lxz0yyqd3mxqbx3dq1ih4w33lf4fi8d";
|
2016-05-08 02:52:57 +00:00
|
|
|
};
|
|
|
|
|
2018-01-16 08:10:22 +00:00
|
|
|
# needs more dependencies from https://github.com/wakatime/wakatime/blob/191b302bfb5f272ae928c6d3867d06f3dfcba4a8/dev-requirements.txt
|
|
|
|
# especially nose-capturestderr, which we do not package yet.
|
2018-01-16 03:35:49 +00:00
|
|
|
doCheck = false;
|
2018-01-16 08:10:22 +00:00
|
|
|
checkInputs = [ mock testfixtures pytest glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export HOME=$(mktemp -d) LC_ALL=en_US.utf-8
|
|
|
|
pytest tests
|
|
|
|
'';
|
2018-01-16 03:35:49 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-08 02:52:57 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "WakaTime command line interface";
|
|
|
|
longDescription = ''
|
|
|
|
Command line interface to WakaTime used by all WakaTime text editor
|
|
|
|
plugins. You shouldn't need to directly use this package unless you
|
|
|
|
are building your own plugin or your text editor's plugin asks you
|
|
|
|
to install the wakatime CLI interface manually.
|
|
|
|
'';
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|