42 lines
768 B
Nix
42 lines
768 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, importlib-resources
|
|
, pytest-subtests
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tzdata";
|
|
version = "2023.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Ee8eCOVKyw1Plb2xvgXaZZZz3krL0hv5xp6UzF6Qejo=";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|