diff --git a/python-msgpack.spec b/python-msgpack.spec index 22980a7..c9992de 100644 --- a/python-msgpack.spec +++ b/python-msgpack.spec @@ -1,4 +1,5 @@ %global srcname msgpack +%bcond_with tests Name: python-%{srcname} Version: 1.0.0 @@ -45,10 +46,12 @@ rm -rf test/test_timestamp.py %install %py3_install +%if %{with network} %check PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v test \ -k "not test_unicode and not test_read_array_header and not test_partialdata \ and not test_read_map_header and not test_issue124" +%endif %files -n python%{python3_pkgversion}-%{srcname} %doc README.md