1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 click, 7 icalendar, 8 tzdata, 9 pytestCheckHook, 10 restructuredtext-lint, 11 pygments, 12 pytz, 13 pytest-click, 14}: 15 16buildPythonPackage rec { 17 pname = "x-wr-timezone"; 18 version = "2.0.1"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "niccokunzmann"; 23 repo = "x-wr-timezone"; 24 tag = "v${version}"; 25 hash = "sha256-Llpe3Z0Yfd0vRgx95D4YVrnNJk0g/VqPuNvtUrUpFk0="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 click 32 icalendar 33 tzdata 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 restructuredtext-lint 39 pygments 40 pytz 41 pytest-click 42 ]; 43 44 preCheck = '' 45 export PATH=$out/bin:$PATH 46 ''; 47 48 pythonImportsCheck = [ "x_wr_timezone" ]; 49 50 meta = { 51 changelog = "https://github.com/niccokunzmann/x-wr-timezone/blob/${src.tag}/README.rst#changelog"; 52 description = "Convert calendars using X-WR-TIMEZONE to standard ones"; 53 homepage = "https://github.com/niccokunzmann/x-wr-timezone"; 54 license = lib.licenses.lgpl3Plus; 55 maintainers = with lib.maintainers; [ dotlambda ]; 56 }; 57}