mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
42 lines
876 B
Nix
42 lines
876 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;
|
|
sha256 = "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 ];
|
|
};
|
|
}
|