nixpkgs/pkgs/applications/office/watson/default.nix
Alvar Penning 115fa9a191 watson: 2.0.1 -> 2.1.0
This version bumps allows reverting the Click 7 override.
<https://github.com/TailorDev/Watson/releases/tag/2.1.0>
2022-05-19 21:32:34 +02:00

33 lines
937 B
Nix

{ lib, fetchFromGitHub, python3, installShellFiles }:
with python3.pkgs;
buildPythonApplication rec {
pname = "watson";
version = "2.1.0";
src = fetchFromGitHub {
owner = "TailorDev";
repo = "Watson";
rev = version;
sha256 = "sha256-/AASYeMkt18KPJljAjNPRYOpg/T5xuM10LJq4LrFD0g=";
};
postInstall = ''
installShellCompletion --bash --name watson watson.completion
installShellCompletion --zsh --name _watson watson.zsh-completion
installShellCompletion --fish watson.fish
'';
checkInputs = [ pytestCheckHook pytest-mock mock pytest-datafiles ];
propagatedBuildInputs = [ arrow click click-didyoumean requests ];
nativeBuildInputs = [ installShellFiles ];
meta = with lib; {
homepage = "https://tailordev.github.io/Watson/";
description = "A wonderful CLI to track your time!";
license = licenses.mit;
maintainers = with maintainers; [ mguentner nathyong oxzi ];
};
}