nixpkgs/pkgs/applications/office/watson/default.nix
Alvar Penning 0a53c6b565 maintainers: rename geistesk to oxzi
For reasons I have renamed my GitHub account and would like to include
this name change here.
2020-08-15 16:03:46 +02:00

36 lines
960 B
Nix

{ stdenv, fetchFromGitHub, pythonPackages, installShellFiles }:
with pythonPackages;
buildPythonApplication rec {
pname = "watson";
version = "1.10.0";
src = fetchFromGitHub {
owner = "TailorDev";
repo = "Watson";
rev = version;
sha256 = "1s0k86ldqky6avwjaxkw1y02wyf59qwqldcahy3lhjn1b5dgsb3s";
};
checkPhase = ''
pytest -vs tests
'';
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 ];
nativeBuildInputs = [ installShellFiles ];
meta = with stdenv.lib; {
homepage = "https://tailordev.github.io/Watson/";
description = "A wonderful CLI to track your time!";
license = licenses.mit;
maintainers = with maintainers; [ mguentner nathyong oxzi ];
};
}