python3Packages.pep8-naming: fix tests for flake8 => 5
This commit is contained in:
parent
cd907d4b84
commit
98e6eddd83
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, flake8
|
, flake8
|
||||||
, python
|
, python
|
||||||
}:
|
}:
|
||||||
@ -9,11 +10,22 @@ buildPythonPackage rec {
|
|||||||
pname = "pep8-naming";
|
pname = "pep8-naming";
|
||||||
version = "0.13.1";
|
version = "0.13.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "PyCQA";
|
||||||
sha256 = "sha256-Ovd82qnHll98haVs1Xk1RVPJu9P98weKd28S21TdaUQ=";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-NG4hLZcOMKprUyMnzkHRmUCFGyYgvT6ydBQNpgWE9h0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fixes tests for flake8 => 5
|
||||||
|
# Remove on next release
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/PyCQA/pep8-naming/commit/c8808a0907f64b5d081cff8d3f9443e5ced1474e.patch";
|
||||||
|
sha256 = "sha256-4c+a0viS0rXuxj+TuIfgrKZjnrjiJjDoYBbNp3+6Ed0=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
flake8
|
flake8
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user