depot/third_party/nixpkgs/pkgs/development/python-modules/tzdata/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

42 lines
778 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, importlib-resources
, pytest-subtests
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "tzdata";
version = "2022.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-IfTw1yQVcu+n96T9q7BS5htV3EgnTmhCaXzN9SU+VFE=";
};
nativeBuildInputs = [
setuptools
];
checkInputs = [
pytestCheckHook
pytest-subtests
] ++ lib.optionals (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 ];
};
}