depot/third_party/nixpkgs/pkgs/development/python-modules/tzdata/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
760 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
importlib-resources,
pytest-subtests,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "tzdata";
version = "2024.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-JnQSD42JGQl1HDirzf04asCloRJ5VPvDMq9rXOrgfv0=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
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; [ ];
};
}