at 23.05-pre 870 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, nose 5, tox 6, six 7, python-dateutil 8, kitchen 9, pytestCheckHook 10, pytz 11, pkgs 12}: 13 14buildPythonPackage rec { 15 pname = "taskw"; 16 version = "2.0.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-EQm9+b3nqbMqUAejAsh4MD/2UYi2QiWsdKMomkxUi90="; 21 }; 22 23 patches = [ ./use-template-for-taskwarrior-install-path.patch ]; 24 postPatch = '' 25 substituteInPlace taskw/warrior.py \ 26 --replace '@@taskwarrior@@' '${pkgs.taskwarrior}' 27 ''; 28 29 buildInputs = [ pkgs.taskwarrior ]; 30 31 propagatedBuildInputs = [ six python-dateutil kitchen pytz ]; 32 33 checkInputs = [ pytestCheckHook ]; 34 35 meta = with lib; { 36 homepage = "https://github.com/ralphbean/taskw"; 37 description = "Python bindings for your taskwarrior database"; 38 license = licenses.gpl3Plus; 39 maintainers = with maintainers; [ pierron ]; 40 }; 41}