mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
38 lines
742 B
Nix
38 lines
742 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
importlib-resources,
|
|
pytest-subtests,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tzdata";
|
|
version = "2024.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fYXMQW6TguaQlbe99K/Z44gEGKJBP+7HBp1TPWtOMcw=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|