From cc51dd699d0d55562f5ecc1f190450674f3de975 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Sat, 6 May 2017 10:26:32 +0300 Subject: [PATCH] pythonPackages.pytest-flake8: init at 0.8.1 --- .../python-modules/pytest-flake8/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-flake8/default.nix diff --git a/pkgs/development/python-modules/pytest-flake8/default.nix b/pkgs/development/python-modules/pytest-flake8/default.nix new file mode 100644 index 000000000000..93883283627e --- /dev/null +++ b/pkgs/development/python-modules/pytest-flake8/default.nix @@ -0,0 +1,29 @@ +{lib, buildPythonPackage, fetchPypi, pytest, flake8}: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "pytest-flake8"; + version = "0.8.1"; + + # although pytest is a runtime dependency, do not add it as + # propagatedBuildInputs in order to allow packages depend on another version + # of pytest more easily + buildInputs = [ pytest ]; + propagatedBuildInputs = [ flake8 ]; + + src = fetchPypi { + inherit pname version; + sha256 = "1za5i09gz127yraigmcl443w6149714l279rmlfxg1bl2kdsc45a"; + }; + + checkPhase = '' + pytest --ignore=nix_run_setup.py . + ''; + + meta = { + description = "py.test plugin for efficiently checking PEP8 compliance"; + homepage = https://github.com/tholo/pytest-flake8; + maintainers = with lib.maintainers; [ jluttine ]; + license = lib.licenses.bsd2; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 430cc4ac3865..ffc06ab1b652 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5129,6 +5129,8 @@ in { }; }; + pytest-flake8 = callPackage ../development/python-modules/pytest-flake8 { }; + pytestflakes = buildPythonPackage rec { name = "pytest-flakes-${version}"; version = "1.0.1";