nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 37 lines 719 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, importlib-resources 5, pytest-subtests 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "tzdata"; 12 version = "2022.1"; 13 format = "pyproject"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-i1NqjsY9wHUTQrOYQZOjEY+Pyir+JXUrubf//TmFUtM="; 18 }; 19 20 checkInputs = [ 21 pytestCheckHook 22 pytest-subtests 23 ] ++ lib.optional (pythonOlder "3.7") [ 24 importlib-resources 25 ]; 26 27 pythonImportsCheck = [ 28 "tzdata" 29 ]; 30 31 meta = with lib; { 32 description = "Provider of IANA time zone data"; 33 homepage = "https://github.com/python/tzdata"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ SuperSandro2000 ]; 36 }; 37}