nixpkgs-suyu/pkgs/development/python-modules/tasklib/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

41 lines
803 B
Nix

{ lib
, pythonPackages
, taskwarrior
, writeShellScriptBin
}:
with pythonPackages;
let
wsl_stub = writeShellScriptBin "wsl" "true";
in buildPythonPackage rec {
pname = "tasklib";
version = "2.5.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-XM1zG1JjbdEEV6i42FjLDQJv+qsePnUbr3kb+APjfXs=";
};
propagatedBuildInputs = [
six
pytz
tzlocal
];
nativeCheckInputs = [
taskwarrior
wsl_stub
];
meta = with lib; {
homepage = "https://github.com/robgolding/tasklib";
description = "Library for interacting with taskwarrior databases";
changelog = "https://github.com/GothenburgBitFactory/tasklib/releases/tag/${version}";
maintainers = with maintainers; [ arcnmx ];
platforms = platforms.all;
license = licenses.bsd3;
};
}