2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, tox
|
|
|
|
, six
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
, kitchen
|
|
|
|
, pytz
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "1.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "taskw";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "1a68e49cac2d4f6da73c0ce554fd6f94932d95e20596f2ee44a769a28c12ba7d";
|
2020-04-24 23:36:52 +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 ];
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [ six python-dateutil kitchen pytz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ralphbean/taskw";
|
|
|
|
description = "Python bindings for your taskwarrior database";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ pierron ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|