python3Packages.pep8-naming: add patch to fix tests

This commit is contained in:
Fabian Affolter 2021-11-26 22:32:32 +01:00
parent fc9ee3bc0b
commit d08d54ced8

View File

@ -1,5 +1,6 @@
{ lib
, fetchPypi
, fetchpatch
, buildPythonPackage
, flake8
, flake8-polyfill
@ -20,6 +21,16 @@ buildPythonPackage rec {
flake8-polyfill
];
patches = [
# Add missing option to get passing tests, https://github.com/PyCQA/pep8-naming/pull/181
(fetchpatch {
name = "add-missing-option.patch";
url = "https://github.com/PyCQA/pep8-naming/commit/03b8f36f6a8bb8bc79dfa5a71ad9be2a0bf8bbf5.patch";
sha256 = "1YTh84Yoj0MqFZoifM362563r1GuzaF+mMmdT/ckC7I=";
})
];
checkPhase = ''
runHook preCheck
${python.interpreter} run_tests.py