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