ical2orgpy: modernize

+16 -11
+16 -11
pkgs/by-name/ic/ical2orgpy/package.nix
··· 1 1 { 2 2 lib, 3 - python3, 3 + python3Packages, 4 4 fetchFromGitHub, 5 + versionCheckHook, 5 6 }: 6 7 7 - python3.pkgs.buildPythonApplication rec { 8 + python3Packages.buildPythonApplication rec { 8 9 pname = "ical2orgpy"; 9 10 version = "0.5"; 10 - 11 - format = "setuptools"; 11 + pyproject = true; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "ical2org-py"; 15 15 repo = "ical2org.py"; 16 - rev = version; 16 + tag = version; 17 17 hash = "sha256-vBi1WYXMuDFS/PnwFQ/fqN5+gIvtylXidfZklyd6LcI="; 18 18 }; 19 19 20 - propagatedBuildInputs = with python3.pkgs; [ 20 + build-system = [ python3Packages.setuptools ]; 21 + 22 + dependencies = with python3Packages; [ 21 23 click 22 24 future 23 25 icalendar ··· 26 28 recurring-ical-events 27 29 ]; 28 30 29 - nativeCheckInputs = with python3.pkgs; [ 31 + nativeCheckInputs = with python3Packages; [ 30 32 freezegun 31 33 pytestCheckHook 32 34 pyyaml 35 + versionCheckHook 33 36 ]; 34 37 35 - meta = with lib; { 36 - changelog = "https://github.com/ical2org-py/ical2org.py/blob/${src.rev}/CHANGELOG.rst"; 38 + pythonImportsCheck = [ "ical2orgpy" ]; 39 + 40 + meta = { 41 + changelog = "https://github.com/ical2org-py/ical2org.py/blob/${src.tag}/CHANGELOG.rst"; 37 42 description = "Converting ICAL file into org-mode format"; 38 43 homepage = "https://github.com/ical2org-py/ical2org.py"; 39 - license = licenses.gpl3Only; 40 - maintainers = with maintainers; [ StillerHarpo ]; 44 + license = lib.licenses.gpl3Only; 45 + maintainers = with lib.maintainers; [ StillerHarpo ]; 41 46 mainProgram = "ical2orgpy"; 42 47 }; 43 48