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.5";
14
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "niccokunzmann";
19 repo = "x-wr-timezone";
20 rev = "v${version}";
21 hash = "sha256-vUhAq6b5I0gYbXmbElxSSL6Mu9BSLs0uT5gb8zXdmpg=";
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 pythonImportsCheck = [ "x_wr_timezone" ];
40
41 meta = {
42 description = "Convert calendars using X-WR-TIMEZONE to standard ones";
43 homepage = "https://github.com/niccokunzmann/x-wr-timezone";
44 license = lib.licenses.lgpl3Plus;
45 maintainers = with lib.maintainers; [ dotlambda ];
46 };
47}