depot/third_party/nixpkgs/pkgs/development/python-modules/taskw/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

41 lines
874 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, nose
, tox
, six
, python-dateutil
, kitchen
, pytestCheckHook
, pytz
, pkgs
}:
buildPythonPackage rec {
pname = "taskw";
version = "2.0.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-EQm9+b3nqbMqUAejAsh4MD/2UYi2QiWsdKMomkxUi90=";
};
patches = [ ./use-template-for-taskwarrior-install-path.patch ];
postPatch = ''
substituteInPlace taskw/warrior.py \
--replace '@@taskwarrior@@' '${pkgs.taskwarrior}'
'';
buildInputs = [ pkgs.taskwarrior ];
propagatedBuildInputs = [ six python-dateutil kitchen pytz ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://github.com/ralphbean/taskw";
description = "Python bindings for your taskwarrior database";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ pierron ];
};
}