pythonPackages.tzdata: run tests

+13 -1
+13 -1
pkgs/development/python-modules/tzdata/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + , pytestCheckHook 6 + , pytest-subtests 7 + , importlib-resources 8 + }: 2 9 3 10 buildPythonPackage rec { 4 11 pname = "tzdata"; ··· 9 16 inherit pname version; 10 17 sha256 = "sha256-4ZxzUfiHUioaxznSEEHlkt3ebdG3ZP3vqPeys1UdPTg="; 11 18 }; 19 + 20 + checkInputs = [ 21 + pytestCheckHook 22 + pytest-subtests 23 + ] ++ lib.optional (pythonOlder "3.7") importlib-resources; 12 24 13 25 pythonImportsCheck = [ "tzdata" ]; 14 26