python3Packages.pep8-naming: add patch to fix tests
This commit is contained in:
parent
fc9ee3bc0b
commit
d08d54ced8
@ -1,5 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, flake8
|
, flake8
|
||||||
, flake8-polyfill
|
, flake8-polyfill
|
||||||
@ -20,6 +21,16 @@ buildPythonPackage rec {
|
|||||||
flake8-polyfill
|
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 = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
${python.interpreter} run_tests.py
|
${python.interpreter} run_tests.py
|
||||||
|
Loading…
Reference in New Issue
Block a user