ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / tzdata / default.nix
blob2e3cdafc8a12597a12847685154537bdc7a5afd3
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , importlib-resources
5 , pytest-subtests
6 , pytestCheckHook
7 , pythonOlder
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "tzdata";
13   version = "2022.6";
14   format = "pyproject";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-kfEdtFAzhZKMFVmMmFc+OvB+cikYG+5Tdb0w8Wld3K4=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   checkInputs = [
26     pytestCheckHook
27     pytest-subtests
28   ] ++ lib.optionals (pythonOlder "3.7") [
29     importlib-resources
30   ];
32   pythonImportsCheck = [
33     "tzdata"
34   ];
36   meta = with lib; {
37     description = "Provider of IANA time zone data";
38     homepage = "https://github.com/python/tzdata";
39     license = licenses.asl20;
40     maintainers = with maintainers; [ SuperSandro2000 ];
41   };