2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-28 15:17:55 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, tox
|
|
|
|
, six
|
|
|
|
, dateutil
|
2018-12-26 02:26:46 +00:00
|
|
|
, kitchen
|
2018-10-28 15:17:55 +00:00
|
|
|
, pytz
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-24 09:28:30 +00:00
|
|
|
version = "1.3.0";
|
2018-10-28 15:17:55 +00:00
|
|
|
pname = "taskw";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:30 +00:00
|
|
|
sha256 = "7673d80b3d5bace5b35eb71f5035e313a92daab6e437694128d8ce7dcdaf66fb";
|
2018-10-28 15:17:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./use-template-for-taskwarrior-install-path.patch ];
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace taskw/warrior.py \
|
|
|
|
--replace '@@taskwarrior@@' '${pkgs.taskwarrior}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
# https://github.com/ralphbean/taskw/issues/98
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ nose pkgs.taskwarrior tox ];
|
2018-12-26 02:26:46 +00:00
|
|
|
propagatedBuildInputs = [ six dateutil kitchen pytz ];
|
2018-10-28 15:17:55 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ralphbean/taskw";
|
2018-10-28 15:17:55 +00:00
|
|
|
description = "Python bindings for your taskwarrior database";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ pierron ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|