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

36 lines
950 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, pythonPackages, installShellFiles }:
2017-05-04 18:11:36 +02:00
with pythonPackages;
buildPythonApplication rec {
pname = "watson";
2020-07-19 13:24:42 +02:00
version = "1.10.0";
2017-05-04 18:11:36 +02:00
src = fetchFromGitHub {
owner = "TailorDev";
repo = "Watson";
rev = version;
2020-07-19 13:24:42 +02:00
sha256 = "1s0k86ldqky6avwjaxkw1y02wyf59qwqldcahy3lhjn1b5dgsb3s";
2017-05-04 18:11:36 +02:00
};
checkPhase = ''
2019-07-01 05:20:13 +02:00
pytest -vs tests
2020-04-28 08:40:36 +02:00
'';
2020-04-28 08:46:48 +02:00
postInstall = ''
installShellCompletion --bash --name watson watson.completion
installShellCompletion --zsh --name _watson watson.zsh-completion
'';
checkInputs = [ py pytest pytest-datafiles pytest-mock pytestrunner ];
propagatedBuildInputs = [ arrow click click-didyoumean requests ];
2020-04-28 08:46:48 +02:00
nativeBuildInputs = [ installShellFiles ];
2017-05-04 18:11:36 +02:00
meta = with lib; {
homepage = "https://tailordev.github.io/Watson/";
2017-05-04 18:11:36 +02:00
description = "A wonderful CLI to track your time!";
license = licenses.mit;
maintainers = with maintainers; [ mguentner nathyong oxzi ];
2017-05-04 18:11:36 +02:00
};
}