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