nixpkgs/pkgs/development/python-modules/tzdata/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
719 B
Nix
Raw Normal View History

2021-03-15 15:36:24 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, importlib-resources
, pytest-subtests
, pytestCheckHook
, pythonOlder
2021-03-15 15:36:24 +00:00
}:
2021-02-14 06:36:01 +00:00
buildPythonPackage rec {
pname = "tzdata";
version = "2022.1";
2021-02-14 06:36:01 +00:00
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-i1NqjsY9wHUTQrOYQZOjEY+Pyir+JXUrubf//TmFUtM=";
2021-02-14 06:36:01 +00:00
};
2021-03-15 15:36:24 +00:00
checkInputs = [
pytestCheckHook
pytest-subtests
] ++ lib.optional (pythonOlder "3.7") [
importlib-resources
];
2021-03-15 15:36:24 +00:00
pythonImportsCheck = [
"tzdata"
];
2021-02-14 06:36:01 +00:00
meta = with lib; {
description = "Provider of IANA time zone data";
homepage = "https://github.com/python/tzdata";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}