summary refs log tree commit diff
path: root/pkgs/development/python-modules/taskw/default.nix
blob: ee9a9716d1178e0a1e59c1893d87d4242b00fcfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 ];
  };

}