2017-12-31 13:13:21 +00:00
|
|
|
{ stdenv, pythonPackages, fetchpatch }:
|
2017-05-04 17:11:36 +01:00
|
|
|
|
2017-12-31 13:13:21 +00:00
|
|
|
with pythonPackages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-07-01 04:18:56 +01:00
|
|
|
pname = "watson";
|
2019-09-29 11:42:12 +01:00
|
|
|
version = "1.8.0";
|
2017-05-04 17:11:36 +01:00
|
|
|
|
2017-12-31 13:13:21 +00:00
|
|
|
src = fetchPypi {
|
2019-07-01 04:18:56 +01:00
|
|
|
inherit version;
|
|
|
|
pname = "td-watson";
|
2019-09-29 11:42:12 +01:00
|
|
|
sha256 = "1ip66jhbcqifdw1avbhngwym0vv7fsqxgbph11da5wlqwfwp060n";
|
2017-05-04 17:11:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-07-01 04:20:13 +01:00
|
|
|
pytest -vs tests
|
2017-05-04 17:11:36 +01:00
|
|
|
'';
|
2017-12-31 13:13:21 +00:00
|
|
|
|
|
|
|
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ requests click arrow ];
|
2017-05-04 17:11:36 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://tailordev.github.io/Watson/;
|
|
|
|
description = "A wonderful CLI to track your time!";
|
|
|
|
license = licenses.mit;
|
2019-07-01 02:46:08 +01:00
|
|
|
maintainers = with maintainers; [ mguentner nathyong ] ;
|
2017-05-04 17:11:36 +01:00
|
|
|
};
|
2017-12-31 13:13:21 +00:00
|
|
|
}
|