diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/taskw')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/taskw/default.nix | 41 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/taskw/use-template-for-taskwarrior-install-path.patch | 14 |
2 files changed, 55 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/taskw/default.nix b/nixpkgs/pkgs/development/python-modules/taskw/default.nix new file mode 100644 index 000000000000..d2d12ca0b962 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/taskw/default.nix @@ -0,0 +1,41 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +, tox +, six +, dateutil +, kitchen +, pytz +, pkgs +}: + +buildPythonPackage rec { + version = "1.2.0"; + pname = "taskw"; + + src = fetchPypi { + inherit pname version; + sha256 = "fadd8afc12df026c3c2d39b633c55d3337f7dca95602fce2239455a048bc85fe"; + }; + + 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 ]; + propagatedBuildInputs = [ six dateutil kitchen pytz ]; + + meta = with stdenv.lib; { + homepage = https://github.com/ralphbean/taskw; + description = "Python bindings for your taskwarrior database"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ pierron ]; + }; + +} diff --git a/nixpkgs/pkgs/development/python-modules/taskw/use-template-for-taskwarrior-install-path.patch b/nixpkgs/pkgs/development/python-modules/taskw/use-template-for-taskwarrior-install-path.patch new file mode 100644 index 000000000000..8c7685c9d03b --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/taskw/use-template-for-taskwarrior-install-path.patch @@ -0,0 +1,14 @@ +commit 4de021d049a9b194da93d7e96ff12cc1cbabac83 +Author: Nicolas B. Pierron <nixos@nbp.name> +Date: Sun Nov 16 15:19:38 2014 +0100 + + Use a template for taskwarrior install path. + +--- a/taskw/warrior.py ++++ b/taskw/warrior.py +@@ -449 +449 @@ class TaskWarriorShellout(TaskWarriorBase): +- 'task', ++ '@@taskwarrior@@/bin/task', +@@ -553 +553 @@ class TaskWarriorShellout(TaskWarriorBase): +- ['task', '--version'], ++ ['@@taskwarrior@@/bin/task', '--version'], |