about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/office/watson/default.nix
blob: 16df0b294c163fb0c364f966d9e99cbf128edfb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, pythonPackages, fetchpatch }:

with pythonPackages;

buildPythonApplication rec {
  pname = "watson";
  version = "1.7.0";

  src = fetchPypi {
    inherit version;
    pname = "td-watson";
    sha256 = "249313996751f32f38817d424cbf8d74956461df1439f0ee3a962fcc3c77225d";
  };

  checkPhase = ''
    pytest -vs tests
 '';

  checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
  propagatedBuildInputs = [ requests click arrow ];

  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 ] ;
  };
}