3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/watson/default.nix

35 lines
912 B
Nix
Raw Normal View History

2020-04-28 07:46:48 +01:00
{ stdenv, pythonPackages, fetchpatch, installShellFiles }:
2017-05-04 17:11:36 +01:00
with pythonPackages;
buildPythonApplication rec {
pname = "watson";
version = "1.8.0";
2017-05-04 17:11:36 +01:00
src = fetchPypi {
inherit version;
pname = "td-watson";
sha256 = "1ip66jhbcqifdw1avbhngwym0vv7fsqxgbph11da5wlqwfwp060n";
2017-05-04 17:11:36 +01:00
};
checkPhase = ''
2019-07-01 04:20:13 +01:00
pytest -vs tests
2020-04-28 07:40:36 +01:00
'';
2020-04-28 07:46:48 +01:00
postInstall = ''
installShellCompletion --bash --name watson watson.completion
installShellCompletion --zsh --name _watson watson.zsh-completion
'';
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
propagatedBuildInputs = [ requests click arrow ];
2020-04-28 07:46:48 +01:00
nativeBuildInputs = [ installShellFiles ];
2017-05-04 17:11:36 +01:00
meta = with stdenv.lib; {
homepage = "https://tailordev.github.io/Watson/";
2017-05-04 17:11:36 +01:00
description = "A wonderful CLI to track your time!";
license = licenses.mit;
2020-04-28 07:40:36 +01:00
maintainers = with maintainers; [ mguentner nathyong ];
2017-05-04 17:11:36 +01:00
};
}