python310Packages.flake8-debugger: enable tests
- add pythonImportsCheck - disable on older Python releases
This commit is contained in:
parent
ced8363582
commit
00e1dd6c90
1 changed files with 22 additions and 13 deletions
|
@ -1,32 +1,41 @@
|
||||||
{ lib, fetchPypi, buildPythonPackage, isPy27
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
, flake8
|
, flake8
|
||||||
, pycodestyle
|
, pycodestyle
|
||||||
, six
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flake8-debugger";
|
pname = "flake8-debugger";
|
||||||
version = "4.1.2";
|
version = "4.1.2";
|
||||||
disabled = isPy27;
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-UrACVglB422b+Ab8olI9x/uFYKKV1fGm4VrC3tenOEA=";
|
hash = "sha256-UrACVglB422b+Ab8olI9x/uFYKKV1fGm4VrC3tenOEA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ flake8 pycodestyle six ];
|
propagatedBuildInputs = [
|
||||||
|
flake8
|
||||||
|
pycodestyle
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# Tests not included in PyPI tarball
|
pythonImportsCheck = [
|
||||||
# FIXME: Remove when https://github.com/JBKahn/flake8-debugger/pull/15 is merged
|
"flake8_debugger"
|
||||||
doCheck = false;
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jbkahn/flake8-debugger";
|
|
||||||
description = "ipdb/pdb statement checker plugin for flake8";
|
description = "ipdb/pdb statement checker plugin for flake8";
|
||||||
maintainers = with lib.maintainers; [ johbo ];
|
homepage = "https://github.com/jbkahn/flake8-debugger";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ johbo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue