3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix
xeji f201f8c3fd
pythonPackages.pytestflakes: fix build (#46500)
- disable a failing test case that looks broken
- remove pytestcache depencency that was dropped upstream
2018-09-11 11:15:03 +02:00

27 lines
678 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pytestpep8, pytest, pyflakes }:
buildPythonPackage rec {
pname = "pytest-flakes";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "341964bf5760ebbdde9619f68a17d5632c674c3f6903ef66daa0a4f540b3d143";
};
buildInputs = [ pytestpep8 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";
};
}