nixpkgs/pkgs/applications/office/watson/default.nix

32 lines
901 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, pythonPackages, installShellFiles }:
2017-05-04 16:11:36 +00:00
with pythonPackages;
buildPythonApplication rec {
pname = "watson";
2021-05-11 18:54:50 +00:00
version = "2.0.1";
2017-05-04 16:11:36 +00:00
src = fetchFromGitHub {
owner = "TailorDev";
repo = "Watson";
rev = version;
2021-05-11 18:54:50 +00:00
sha256 = "0radf5afyphmzphfqb4kkixahds2559nr3yaqvni4xrisdaiaymz";
2017-05-04 16:11:36 +00:00
};
2020-04-28 06:46:48 +00:00
postInstall = ''
installShellCompletion --bash --name watson watson.completion
installShellCompletion --zsh --name _watson watson.zsh-completion
'';
checkInputs = [ pytestCheckHook pytest-mock mock pytest-datafiles ];
propagatedBuildInputs = [ arrow click click-didyoumean requests ];
2020-04-28 06:46:48 +00:00
nativeBuildInputs = [ installShellFiles ];
2017-05-04 16:11:36 +00:00
meta = with lib; {
homepage = "https://tailordev.github.io/Watson/";
2017-05-04 16:11:36 +00:00
description = "A wonderful CLI to track your time!";
license = licenses.mit;
maintainers = with maintainers; [ mguentner nathyong oxzi ];
2017-05-04 16:11:36 +00:00
};
}