1{ lib, fetchFromGitHub, buildPythonPackage, fetchpatch, flake8, six }:
2
3buildPythonPackage rec {
4 pname = "flake8-future-import";
5 version = "0.4.5";
6
7 # PyPI tarball doesn't include the test suite
8 src = fetchFromGitHub {
9 owner = "xZise";
10 repo = "flake8-future-import";
11 rev = version;
12 sha256 = "00fpxa6g8cabybnciwnpsbg60zhgydc966jgwyyggw1pcg0frdqr";
13 };
14
15 patches = [
16 # Add Python 3.7 support. Remove with the next release
17 (fetchpatch {
18 url = https://github.com/xZise/flake8-future-import/commit/cace194a44d3b95c9c1ed96640bae49183acca04.patch;
19 sha256 = "17pkqnh035j5s5c53afs8bk49bq7lnmdwqp5k7izx7sw80z73p9r";
20 })
21 ];
22
23 propagatedBuildInputs = [ flake8 six ];
24
25 meta = {
26 homepage = https://github.com/xZise/flake8-future-import;
27 description = "A flake8 extension to check for the imported __future__ modules to make it easier to have a consistent code base";
28 license = lib.licenses.mit;
29 };
30}