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