lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add python-taskw 0.8.6.

+76
+48
pkgs/development/python-modules/taskw/use-template-for-taskwarrior-install-path.patch
··· 1 + commit 4de021d049a9b194da93d7e96ff12cc1cbabac83 2 + Author: Nicolas B. Pierron <nixos@nbp.name> 3 + Date: Sun Nov 16 15:19:38 2014 +0100 4 + 5 + Use a template for taskwarrior install path. 6 + 7 + diff --git a/taskw/warrior.py b/taskw/warrior.py 8 + index 21dde88..e0509f2 100644 9 + --- a/taskw/warrior.py 10 + +++ b/taskw/warrior.py 11 + @@ -451,17 +451,17 @@ class TaskWarriorShellout(TaskWarriorBase): 12 + def _execute(self, *args): 13 + """ Execute a given taskwarrior command with arguments 14 + 15 + Returns a 2-tuple of stdout and stderr (respectively). 16 + 17 + """ 18 + command = ( 19 + [ 20 + - 'task', 21 + + '@@taskwarrior@@/bin/task', 22 + 'rc:%s' % self.config_filename, 23 + ] 24 + + self.get_configuration_override_args() 25 + + [six.text_type(arg) for arg in args] 26 + ) 27 + 28 + # subprocess is expecting bytestrings only, so nuke unicode if present 29 + for i in range(len(command)): 30 + @@ -525,17 +525,17 @@ class TaskWarriorShellout(TaskWarriorBase): 31 + except OSError: 32 + # OSError is raised if subprocess.Popen fails to find 33 + # the executable. 34 + return False 35 + 36 + @classmethod 37 + def get_version(cls): 38 + taskwarrior_version = subprocess.Popen( 39 + - ['task', '--version'], 40 + + ['@@taskwarrior@@/bin/task', '--version'], 41 + stdout=subprocess.PIPE 42 + ).communicate()[0] 43 + return LooseVersion(taskwarrior_version.decode()) 44 + 45 + def sync(self, init=False): 46 + if self.get_version() < LooseVersion('2.3'): 47 + raise UnsupportedVersionException( 48 + "'sync' requires version 2.3 of taskwarrior or later."
+28
pkgs/top-level/python-packages.nix
··· 9535 9535 }; 9536 9536 }; 9537 9537 9538 + taskw = buildPythonPackage rec { 9539 + version = "0.8.6"; 9540 + name = "taskw-${version}"; 9541 + 9542 + src = pkgs.fetchurl { 9543 + url = "https://pypi.python.org/packages/source/t/taskw/${name}.tar.gz"; 9544 + # md5 = "9f3ce2eaff9a3986d04632547168894d"; # provided by pypi website. 9545 + sha256 = "341a165a1c2ef94fb1c2a49a785357377f04a0d55cabe9563179849497e47146"; 9546 + }; 9547 + 9548 + patches = [ ../development/python-modules/taskw/use-template-for-taskwarrior-install-path.patch ]; 9549 + postPatch = '' 9550 + substituteInPlace taskw/warrior.py \ 9551 + --replace '@@taskwarrior@@' '${pkgs.taskwarrior}' 9552 + ''; 9553 + 9554 + buildInputs = with self; [ nose pkgs.taskwarrior ]; 9555 + propagatedBuildInputs = with self; [ six dateutil pytz ]; 9556 + 9557 + meta = { 9558 + homepage = http://github.com/ralphbean/taskw; 9559 + description = "Python bindings for your taskwarrior database"; 9560 + license = licenses.gpl3Plus; 9561 + platforms = platforms.all; 9562 + maintainers = [ maintainers.pierron ]; 9563 + }; 9564 + }; 9565 + 9538 9566 tempita = buildPythonPackage rec { 9539 9567 version = "0.5.2"; 9540 9568 name = "tempita-${version}";