nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix
Jonathan Ringer 2fc6522c39 python3Packages.pytest-flakes: disable check, use pythonImportsCheck
Upstream has abandoned this package

Keeping this package around as to not break the many
other packages which use this as a test dependency
2020-05-11 22:13:16 +02:00

32 lines
882 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pytestpep8, 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.0";
src = fetchPypi {
inherit pname version;
sha256 = "341964bf5760ebbdde9619f68a17d5632c674c3f6903ef66daa0a4f540b3d143";
};
checkInputs = [ pytestpep8 pytest ];
propagatedBuildInputs = [ pytest pyflakes ];
# 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 = with stdenv.lib; {
license = licenses.mit;
homepage = "https://pypi.python.org/pypi/pytest-flakes";
description = "pytest plugin to check source code with pyflakes";
};
}