depot/third_party/nixpkgs/pkgs/development/python-modules/taskw/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

41 lines
905 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, nose
, tox
, six
, python-dateutil
, kitchen
, pytz
, pkgs
}:
buildPythonPackage rec {
version = "1.3.1";
pname = "taskw";
src = fetchPypi {
inherit pname version;
sha256 = "1a68e49cac2d4f6da73c0ce554fd6f94932d95e20596f2ee44a769a28c12ba7d";
};
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 ];
};
}