nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchPypi,
5 taskwarrior2,
6 glibcLocales,
7}:
8
9with python3Packages;
10
11buildPythonApplication rec {
12 pname = "vit";
13 version = "2.3.3";
14 pyproject = true;
15 disabled = lib.versionOlder python.version "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-+lrXGfhoB4z5IWkJTXMIm3GGVPfNGO9lUB3uFTx8hDY=";
20 };
21
22 build-system = with python3Packages; [ setuptools ];
23
24 dependencies = [
25 tasklib
26 urwid
27 ];
28
29 nativeCheckInputs = [ glibcLocales ];
30
31 makeWrapperArgs = [
32 "--suffix"
33 "PATH"
34 ":"
35 "${taskwarrior2}/bin"
36 ];
37
38 preCheck = ''
39 export TERM=''${TERM-linux}
40 '';
41
42 pythonImportsCheck = [ "vit" ];
43
44 meta = with lib; {
45 homepage = "https://github.com/scottkosty/vit";
46 description = "Visual Interactive Taskwarrior";
47 mainProgram = "vit";
48 maintainers = with maintainers; [ arcnmx ];
49 platforms = platforms.all;
50 license = licenses.mit;
51 };
52}