summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-flakes/default.nix
blob: df7981e6bfc0f77e1d97a4cb089e0446ee1e15d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, buildPythonPackage, fetchPypi
, pytestpep8, pytest, pyflakes }:

buildPythonPackage rec {
  pname = "pytest-flakes";
  version = "4.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "341964bf5760ebbdde9619f68a17d5632c674c3f6903ef66daa0a4f540b3d143";
  };

  checkInputs = [ pytestpep8 pytest ];
  nativeBuildInputs = [ pytest ];
  propagatedBuildInputs = [ pyflakes ];

  # disable one test case that looks broken
  checkPhase = ''
    py.test test_flakes.py -k 'not test_syntax_error'
  '';

  meta = with stdenv.lib; {
    license = licenses.mit;
    homepage = https://pypi.python.org/pypi/pytest-flakes;
    description = "pytest plugin to check source code with pyflakes";
  };
}