diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-06-16 13:59:06 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2020-06-16 13:59:06 -0700 |
commit | d377538c0d50cb77eeaba5652dc063844f2cb111 (patch) | |
tree | de5b41cfc65ab58c45c46dc4343ec7b471091c7d /pkgs/development/python-modules/flake8-debugger | |
parent | de231741d15c9d6ee4a4ee60583106263c8073e2 (diff) |
pythonPackages.flake8-debugger: fix python <3.8 builds
Diffstat (limited to 'pkgs/development/python-modules/flake8-debugger')
-rw-r--r-- | pkgs/development/python-modules/flake8-debugger/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/flake8-debugger/default.nix b/pkgs/development/python-modules/flake8-debugger/default.nix index 1f41c0a6849a1..81b903621b524 100644 --- a/pkgs/development/python-modules/flake8-debugger/default.nix +++ b/pkgs/development/python-modules/flake8-debugger/default.nix @@ -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 ]; |