2018-10-28 15:17:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, 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 {
|
2018-11-04 10:35:18 +00:00
|
|
|
version = "1.2.0";
|
2018-10-28 15:17:55 +00:00
|
|
|
pname = "taskw";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:18 +00:00
|
|
|
sha256 = "fadd8afc12df026c3c2d39b633c55d3337f7dca95602fce2239455a048bc85fe";
|
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
|
|
|
|
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|