pythonPackages.pytest-flake8: add patch for flake8 4.x compatibility, disable EOL Pythons
This commit is contained in:
parent
3c74174d8c
commit
f98248acde
@ -1,9 +1,11 @@
|
||||
{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
|
||||
{lib, buildPythonPackage, fetchPypi, pythonOlder, fetchpatch, pytest, flake8}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-flake8";
|
||||
version = "1.0.7";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
# although pytest is a runtime dependency, do not add it as
|
||||
# propagatedBuildInputs in order to allow packages depend on another version
|
||||
# of pytest more easily
|
||||
@ -15,6 +17,14 @@ buildPythonPackage rec {
|
||||
sha256 = "f0259761a903563f33d6f099914afef339c085085e643bee8343eb323b32dd6b";
|
||||
};
|
||||
|
||||
# see https://github.com/tholo/pytest-flake8/pull/82/commits
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/tholo/pytest-flake8/commit/eda4ef74c0f25b856fe282742ea206b21e94c24c.patch";
|
||||
sha256 = "001ciy19dhsqa88rhb2b51g5sb0k4s3pz0zk2a191rnib65ll07x";
|
||||
})
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest .
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user