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