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 {
|
2017-05-04 17:11:36 +01:00
|
|
|
pname = "td-watson";
|
2017-12-31 13:13:21 +00:00
|
|
|
version = "1.5.2";
|
2017-05-04 17:11:36 +01:00
|
|
|
|
2017-12-31 13:13:21 +00:00
|
|
|
src = fetchPypi {
|
2017-05-04 17:11:36 +01:00
|
|
|
inherit version pname;
|
2017-12-31 13:13:21 +00:00
|
|
|
sha256 = "6e03d44a9278807fe5245e9ed0943f13ffb88e11249a02655c84cb86260b27c8";
|
2017-05-04 17:11:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# uses tox, test invocation fails
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -vs tests
|
|
|
|
'';
|
2017-12-31 13:13:21 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/TailorDev/Watson/commit/f5760c71cbc22de4e12ede8f6f7257515a9064d3.patch;
|
|
|
|
sha256 = "0s9h26915ilpbd0qhmvk77r3gmrsdrl5l7dqxj0l5q66fp0z6b0g";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ mguentner ] ;
|
|
|
|
};
|
2017-12-31 13:13:21 +00:00
|
|
|
}
|