1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, pytestCheckHook
6, pytest-subtests
7, importlib-resources
8}:
9
10buildPythonPackage rec {
11 pname = "tzdata";
12 version = "2021.1";
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-4ZxzUfiHUioaxznSEEHlkt3ebdG3ZP3vqPeys1UdPTg=";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 pytest-subtests
23 ] ++ lib.optional (pythonOlder "3.7") importlib-resources;
24
25 pythonImportsCheck = [ "tzdata" ];
26
27 meta = with lib; {
28 description = "Provider of IANA time zone data";
29 homepage = "https://github.com/python/tzdata";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ SuperSandro2000 ];
32 };
33}