3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.tzdata: run tests

This commit is contained in:
Robert Schütz 2021-03-15 16:36:24 +01:00
parent 916ee862e8
commit 98dedc538a

View file

@ -1,4 +1,11 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
, pytest-subtests
, importlib-resources
}:
buildPythonPackage rec {
pname = "tzdata";
@ -10,6 +17,11 @@ buildPythonPackage rec {
sha256 = "sha256-4ZxzUfiHUioaxznSEEHlkt3ebdG3ZP3vqPeys1UdPTg=";
};
checkInputs = [
pytestCheckHook
pytest-subtests
] ++ lib.optional (pythonOlder "3.7") importlib-resources;
pythonImportsCheck = [ "tzdata" ];
meta = with lib; {