pythonPackages.flake8-debugger: fix python <3.8 builds

This commit is contained in:
Jonathan Ringer 2020-06-16 13:59:06 -07:00
parent de231741d1
commit d377538c0d

View file

@ -1,4 +1,10 @@
{ lib, fetchPypi, buildPythonPackage, flake8, pycodestyle, pytestrunner, pytest }:
{ lib, fetchPypi, buildPythonPackage, pythonOlder
, flake8
, importlib-metadata
, pycodestyle
, pytestrunner
, pytest
}:
buildPythonPackage rec {
pname = "flake8-debugger";
@ -11,7 +17,8 @@ buildPythonPackage rec {
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ flake8 pycodestyle ];
propagatedBuildInputs = [ flake8 pycodestyle ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
checkInputs = [ pytest ];