5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
37 lines
742 B
Nix
37 lines
742 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 = [ ];
|
|
};
|
|
}
|