blob: 7f1803d12c62eaddf7d20d5f0f9c6dc37932cc60 (
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
|
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, pytest-subtests
, importlib-resources
}:
buildPythonPackage rec {
pname = "tzdata";
version = "2021.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-4ZxzUfiHUioaxznSEEHlkt3ebdG3ZP3vqPeys1UdPTg=";
};
checkInputs = [
pytestCheckHook
pytest-subtests
] ++ lib.optional (pythonOlder "3.7") importlib-resources;
pythonImportsCheck = [ "tzdata" ];
meta = with lib; {
description = "Provider of IANA time zone data";
homepage = "https://github.com/python/tzdata";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
|