mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +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.
41 lines
952 B
Nix
41 lines
952 B
Nix
{ lib, python3Packages, fetchFromGitHub, glibcLocales }:
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "topydo";
|
|
version = "0.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bram85";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1lpfdai0pf90ffrzgmmkadbd86rb7250i3mglpkc82aj6prjm6yb";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
arrow
|
|
icalendar
|
|
glibcLocales
|
|
prompt-toolkit
|
|
urwid
|
|
watchdog
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook mock freezegun pylint ];
|
|
|
|
# Skip test that has been reported multiple times upstream without result:
|
|
# bram85/topydo#271, bram85/topydo#274.
|
|
preCheck = ''
|
|
substituteInPlace test/test_revert_command.py --replace 'test_revert_ls' 'dont_test_revert_ls'
|
|
'';
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
meta = with lib; {
|
|
description = "A cli todo application compatible with the todo.txt format";
|
|
homepage = "https://github.com/bram85/topydo";
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|