depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
714 B
Nix

{ 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";
};
}