Merge pull request #116432 from dotlambda/tzdata-tests

pythonPackages.tzdata: run tests
This commit is contained in:
Sandro 2021-03-16 09:28:05 +01:00 committed by GitHub
commit 8eadf113b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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; {