blob: 7079392e4f6681ce9f66d0a1d04580f14a89d675 (
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
|
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
, pytz-deprecation-shim
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tzlocal";
version = "4.1"; # version needs to be compatible with APScheduler
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-DygBWsaKXAZyEEAKkZf8XTa6m8P46vHaPL1ZrN/tngk=";
};
propagatedBuildInputs = [
pytz-deprecation-shim
];
checkInputs = [
pytest-mock
pytestCheckHook
];
disabledTests = [
"test_conflicting"
"test_noconflict"
"test_symlink_localtime"
] ++ lib.optional stdenv.isDarwin "test_assert_tz_offset";
pythonImportsCheck = [ "tzlocal" ];
meta = with lib; {
description = "Tzinfo object for the local timezone";
homepage = "https://github.com/regebro/tzlocal";
license = licenses.cddl;
maintainers = with maintainers; [ dotlambda ];
};
}
|