504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
46 lines
1,022 B
Nix
46 lines
1,022 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, tox
|
|
, six
|
|
, python-dateutil
|
|
, kitchen
|
|
, pytestCheckHook
|
|
, pytz
|
|
, pkgs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "taskw";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-EQm9+b3nqbMqUAejAsh4MD/2UYi2QiWsdKMomkxUi90=";
|
|
};
|
|
|
|
patches = [
|
|
./use-template-for-taskwarrior-install-path.patch
|
|
# Remove when https://github.com/ralphbean/taskw/pull/151 is merged.
|
|
./support-relative-path-in-taskrc.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 ];
|
|
};
|
|
}
|