mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
34 lines
705 B
Nix
34 lines
705 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, pytest-subtests
|
|
, importlib-resources
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tzdata";
|
|
version = "2021.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-4ZxzUfiHUioaxznSEEHlkt3ebdG3ZP3vqPeys1UdPTg=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-subtests
|
|
] ++ lib.optional (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; [ SuperSandro2000 ];
|
|
};
|
|
}
|