lol

Merge pull request #307249 from fabaff/taskw-ng-fix

python312Packages.taskw-ng: refactor

authored by

Fabian Affolter and committed by
GitHub
fce4c5c1 18ab20f8

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