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