Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 kitchen, 6 packaging, 7 poetry-core, 8 poetry-dynamic-versioning, 9 python-dateutil, 10 pythonOlder, 11 pytz, 12 taskwarrior, 13}: 14 15buildPythonPackage rec { 16 pname = "taskw-ng"; 17 version = "0.2.6"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "bergercookie"; 24 repo = "taskw-ng"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-tlidTt0TzWnvfajYiIfvRv7OfakHY6zWAicmAwq/Z8w="; 27 }; 28 29 pythonRelaxDeps = [ 30 "packaging" 31 "pytz" 32 ]; 33 34 build-system = [ 35 poetry-core 36 poetry-dynamic-versioning 37 ]; 38 39 40 propagatedBuildInputs = [ 41 kitchen 42 packaging 43 python-dateutil 44 pytz 45 ]; 46 47 checkInputs = [ taskwarrior ]; 48 49 # TODO: doesn't pass because `can_use` fails and `task --version` seems not to be answering. 50 # pythonImportsCheck = [ "taskw_ng" ]; 51 52 meta = with lib; { 53 description = "Module to interact with the Taskwarrior API"; 54 homepage = "https://github.com/bergercookie/taskw-ng"; 55 changelog = "https://github.com/bergercookie/taskw-ng/blob/${src.rev}/CHANGELOG.rst"; 56 license = licenses.gpl3Plus; 57 maintainers = with maintainers; [ raitobezarius ]; 58 }; 59}