diff --git a/python-paramiko.changes b/python-paramiko.changes index 8ad5424..c8599e2 100644 --- a/python-paramiko.changes +++ b/python-paramiko.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 8 07:44:16 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Fri Mar 18 22:52:45 UTC 2022 - Michael Ströder diff --git a/python-paramiko.spec b/python-paramiko.spec index 1c4bef0..09405cb 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -48,7 +48,6 @@ Requires: python-bcrypt >= 3.1.3 Requires: python-cryptography >= 2.5 Requires: python-pyasn1 >= 0.1.7 BuildArch: noarch -BuildRequires: %{python_module mock} %python_subpackages %description @@ -85,6 +84,8 @@ find demos -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \; %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# https://github.com/paramiko/paramiko/issues/2027 +sed -i 's:from mock:from unittest.mock:' tests/test_*.py export LANG=en_US.UTF-8 %pytest