nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

36 lines
922 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, 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";
disabled = pythonOlder "3.5";
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 = with lib; {
license = licenses.mit;
homepage = "https://pypi.python.org/pypi/pytest-flakes";
description = "pytest plugin to check source code with pyflakes";
};
}