depot/third_party/nixpkgs/pkgs/development/python-modules/tzdata/default.nix
Default email 68d7e71424 Project import generated by Copybara.
GitOrigin-RevId: 945ec499041db73043f745fad3b2a3a01e826081
2022-01-25 20:04:25 -08:00

37 lines
719 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, importlib-resources
, pytest-subtests
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "tzdata";
version = "2021.5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-aNvkGv0BuGeJS739VPoD9GjPpPAIa/tK3NjejyTz7iE=";
};
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 ];
};
}