nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

pythonPackages.tzdata: run tests

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