ical2orgpy: fix build (#420831)

authored by Aleksana and committed by GitHub fe617e6a 3b5b2bf5

+18 -12
+18 -12
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 - future 23 24 icalendar 24 25 pytz 25 26 tzlocal 26 27 recurring-ical-events 27 28 ]; 28 29 29 - nativeCheckInputs = with python3.pkgs; [ 30 + pythonRemoveDeps = [ "future" ]; 31 + 32 + nativeCheckInputs = with python3Packages; [ 30 33 freezegun 31 34 pytestCheckHook 32 35 pyyaml 36 + versionCheckHook 33 37 ]; 34 38 35 - meta = with lib; { 36 - changelog = "https://github.com/ical2org-py/ical2org.py/blob/${src.rev}/CHANGELOG.rst"; 39 + pythonImportsCheck = [ "ical2orgpy" ]; 40 + 41 + meta = { 42 + changelog = "https://github.com/ical2org-py/ical2org.py/blob/${src.tag}/CHANGELOG.rst"; 37 43 description = "Converting ICAL file into org-mode format"; 38 44 homepage = "https://github.com/ical2org-py/ical2org.py"; 39 - license = licenses.gpl3Only; 40 - maintainers = with maintainers; [ StillerHarpo ]; 45 + license = lib.licenses.gpl3Only; 46 + maintainers = with lib.maintainers; [ StillerHarpo ]; 41 47 mainProgram = "ical2orgpy"; 42 48 }; 43 49