ical2orgpy: modernize

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