diff options
Diffstat (limited to 'pkgs/development/python-modules/flake8-future-import/default.nix')
-rw-r--r-- | pkgs/development/python-modules/flake8-future-import/default.nix | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/flake8-future-import/default.nix b/pkgs/development/python-modules/flake8-future-import/default.nix index 7b58dddb853a5..88d7f959b89a4 100644 --- a/pkgs/development/python-modules/flake8-future-import/default.nix +++ b/pkgs/development/python-modules/flake8-future-import/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, isPy38 -, isPy39 -, pythonAtLeast -, flake8 -, six -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + isPy38, + isPy39, + pythonAtLeast, + flake8, + six, + python, }: buildPythonPackage rec { @@ -23,16 +24,15 @@ buildPythonPackage rec { hash = "sha256-2EcCOx3+PCk9LYpQjHCFNpQVI2Pdi+lWL8R6bNadFe0="; }; - patches = lib.optionals (pythonAtLeast "3.10") [ - ./fix-annotations-version-11.patch - ] ++ lib.optionals (isPy38 || isPy39) [ - ./fix-annotations-version-10.patch - ] ++ lib.optionals isPy27 [ - # 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 - # on py2 as well. - ./skip-test.patch - ]; + patches = + lib.optionals (pythonAtLeast "3.10") [ ./fix-annotations-version-11.patch ] + ++ lib.optionals (isPy38 || isPy39) [ ./fix-annotations-version-10.patch ] + ++ lib.optionals isPy27 [ + # 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 + # on py2 as well. + ./skip-test.patch + ]; postPatch = '' substituteInPlace "test_flake8_future_import.py" \ @@ -52,7 +52,7 @@ buildPythonPackage rec { ''; meta = with lib; { - description = "A flake8 extension to check for the imported __future__ modules to make it easier to have a consistent code base"; + description = "Flake8 extension to check for the imported __future__ modules to make it easier to have a consistent code base"; homepage = "https://github.com/xZise/flake8-future-import"; license = licenses.mit; }; |