1{ lib, fetchFromGitHub, buildPythonPackage, python, flake8, six,
2 fetchurl }:
3
4buildPythonPackage rec {
5 pname = "flake8-future-import";
6 name = "${pname}-${version}";
7 version = "0.4.3";
8 # PyPI tarball doesn't include the test suite
9 src = fetchFromGitHub {
10 owner = "xZise";
11 repo = "flake8-future-import";
12 rev = version;
13 sha256 = "0622bdcfa588m7g8igag6hf4rhjdwh74yfnrjwlxw4vlqhg344k4";
14 };
15
16 patches = [
17 # Tests in 0.4.3 are broken. We can remove this patch after
18 # the next release.
19 (fetchurl {
20 url = "https://github.com/xZise/flake8-future-import/commit/b4f5a06b22c574fb5270574d1420715667768d5c.patch";
21 sha256 = "06n9ggz9p9kiwjb3vmaj44pm5vi4nhgzjfn7i730m85xn67xzmyn";
22 })
23 ];
24
25
26 propagatedBuildInputs = [ flake8 six ];
27 meta = {
28 homepage = https://github.com/xZise/flake8-future-import;
29 description = "A flake8 extension to check for the imported __future__ modules to make it easier to have a consistent code base";
30 license = lib.licenses.mit;
31 };
32}