10 pname = "wakatime-cli";
13 src = fetchFromGitHub {
15 repo = "wakatime-cli";
17 hash = "sha256-RnEyrbdYP8BYQ9M+iwikTfYF8HRosR6vhHiQJvGNZ/s=";
20 vendorHash = "sha256-s9nCr55XR/0ZriweDOBRIDpmp+GUE85FWLJkWXqX5/U=";
25 "-X github.com/wakatime/wakatime-cli/pkg/version.Version=${version}"
31 # Tests requiring network
34 "TestSendHeartbeats_ExtraHeartbeats"
35 "TestSendHeartbeats_IsUnsavedEntity"
36 "TestSendHeartbeats_NonExistingExtraHeartbeatsEntity"
37 "TestFileExperts_Err(Auth|Api|BadRequest)"
40 "TestLoadParams_ApiKey_FromVault_Err_Darwin"
43 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
45 passthru.tests.version = testers.testVersion {
46 package = wakatime-cli;
47 command = "HOME=$(mktemp -d) wakatime-cli --version";
51 homepage = "https://wakatime.com/";
52 description = "WakaTime command line interface";
53 license = lib.licenses.bsd3;
54 maintainers = with lib.maintainers; [ sigmanificient ];
55 mainProgram = "wakatime-cli";