forked from mirrors/nixpkgs
pythonPackages.tzdata: run tests
This commit is contained in:
parent
916ee862e8
commit
98dedc538a
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue