From ecebb6090a3267b129e6b0038929803d832b725e Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 20 Sep 2017 17:53:04 +0300 Subject: [PATCH] pythonPackages.flake8-future-import: Init at 0.4.3 --- .../flake8-future-import/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/python-modules/flake8-future-import/default.nix diff --git a/pkgs/development/python-modules/flake8-future-import/default.nix b/pkgs/development/python-modules/flake8-future-import/default.nix new file mode 100644 index 000000000000..f00c1fe21661 --- /dev/null +++ b/pkgs/development/python-modules/flake8-future-import/default.nix @@ -0,0 +1,20 @@ +{ lib, fetchFromGitHub, buildPythonPackage, python, flake8, six }: + +buildPythonPackage rec { + pname = "flake8-future-import"; + name = "${pname}-${version}"; + version = "0.4.3"; + # PyPI tarball doesn't include the test suite + src = fetchFromGitHub { + owner = "xZise"; + repo = "flake8-future-import"; + rev = version; + sha256 = "0622bdcfa588m7g8igag6hf4rhjdwh74yfnrjwlxw4vlqhg344k4"; + }; + propagatedBuildInputs = [ flake8 six ]; + meta = { + homepage = https://github.com/xZise/flake8-future-import; + description = "A flake8 extension to check for the imported __future__ modules to make it easier to have a consistent code base"; + license = lib.licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2584b6f2810b..9be73753cb6b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9003,6 +9003,8 @@ in { flake8-debugger = callPackage ../development/python-modules/flake8-debugger { }; + flake8-future-import = callPackage ../development/python-modules/flake8-future-import { }; + flaky = buildPythonPackage rec { name = "flaky-${version}"; version = "3.1.0";