My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/taskw/default.nix

41 lines
892 B

{ lib
, buildPythonPackage
, fetchPypi
, nose
, tox
, six
, python-dateutil
, kitchen
, pytz
, pkgs
}:
buildPythonPackage rec {
version = "2.0.0";
pname = "taskw";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-EQm9+b3nqbMqUAejAsh4MD/2UYi2QiWsdKMomkxUi90=";
};
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 python-dateutil kitchen pytz ];
meta = with lib; {
homepage = "https://github.com/ralphbean/taskw";
description = "Python bindings for your taskwarrior database";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ pierron ];
};
}