mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
115fa9a191
This version bumps allows reverting the Click 7 override. <https://github.com/TailorDev/Watson/releases/tag/2.1.0>
33 lines
937 B
Nix
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 ];
|
|
};
|
|
}
|