summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-flakes/default.nix
blob: 4329d5a45df94bfe142f4f230c1b83b67c9f228a (plain)
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
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytest,
  pyflakes,
}:

buildPythonPackage rec {
  # upstream has abandoned project in favor of pytest-flake8
  # retaining package to not break other packages
  pname = "pytest-flakes";
  version = "4.0.5";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "953134e97215ae31f6879fbd7368c18d43f709dc2fab5b7777db2bb2bac3a924";
  };

  buildInputs = [ pytest ];
  propagatedBuildInputs = [ pyflakes ];
  nativeCheckInputs = [ pytest ];

  # no longer passes
  doCheck = false;
  pythonImportsCheck = [ "pytest_flakes" ];
  # disable one test case that looks broken
  checkPhase = ''
    py.test test_flakes.py -k 'not test_syntax_error'
  '';

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