2017-12-31 14:13:21 +01:00
|
|
|
{ stdenv, pythonPackages, fetchpatch }:
|
2017-05-04 18:11:36 +02:00
|
|
|
|
2017-12-31 14:13:21 +01:00
|
|
|
with pythonPackages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-07-01 05:18:56 +02:00
|
|
|
pname = "watson";
|
2019-07-01 03:46:08 +02:00
|
|
|
version = "1.7.0";
|
2017-05-04 18:11:36 +02:00
|
|
|
|
2017-12-31 14:13:21 +01:00
|
|
|
src = fetchPypi {
|
2019-07-01 05:18:56 +02:00
|
|
|
inherit version;
|
|
|
|
pname = "td-watson";
|
2019-07-01 03:46:08 +02:00
|
|
|
sha256 = "249313996751f32f38817d424cbf8d74956461df1439f0ee3a962fcc3c77225d";
|
2017-05-04 18:11:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-07-01 05:20:13 +02:00
|
|
|
pytest -vs tests
|
2017-05-04 18:11:36 +02:00
|
|
|
'';
|
2017-12-31 14:13:21 +01:00
|
|
|
|
|
|
|
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ requests click arrow ];
|
2017-05-04 18:11:36 +02: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 03:46:08 +02:00
|
|
|
maintainers = with maintainers; [ mguentner nathyong ] ;
|
2017-05-04 18:11:36 +02:00
|
|
|
};
|
2017-12-31 14:13:21 +01:00
|
|
|
}
|