python37Packages.flake8-future-import: fix dependencies

This commit is contained in:
Jonathan Ringer 2020-06-08 12:46:02 -07:00 committed by Frederik Rietdijk
parent 9196ced870
commit 7b9c13e749

View file

@ -1,4 +1,4 @@
{ lib, isPy27, fetchFromGitHub, buildPythonPackage, fetchpatch, flake8, six }:
{ lib, isPy27, fetchFromGitHub, buildPythonPackage, pythonOlder, fetchpatch, flake8, importlib-metadata, six }:
buildPythonPackage rec {
pname = "flake8-future-import";
@ -12,7 +12,10 @@ buildPythonPackage rec {
sha256 = "00q8n15xdnvqj454arn7xxksyrzh0dw996kjyy7g9rdk0rf8x82z";
};
propagatedBuildInputs = [ flake8 six ];
propagatedBuildInputs = [ flake8 six ]
++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
# Upstream disables this test case naturally on python 3, but it also fails
# inside NixPkgs for python 2. Since it's going to be deleted, we just skip it