python3Packages.flake8-class-newline, flake8-deprecated: init (#359892)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
setuptools,
|
||||
flake8,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flake8-class-newline";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-UUxJI8iOuLPdUttLVbjTSDUg24nbgK9rqBKkrxVCH/E=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ flake8 ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "flake8_class_newline" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flake8 extension to check if a new line is present after a class definition";
|
||||
homepage = "https://github.com/alexandervaneck/flake8-class-newline";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lopsided98 ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
pythonOlder,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
hatchling,
|
||||
flake8,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flake8-deprecated";
|
||||
version = "2.2.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "flake8_deprecated";
|
||||
inherit version;
|
||||
hash = "sha256-7pbKAB0coFYfqORvI+LSRgsYqGaWNzyrZE4QKuD/KqI=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [ flake8 ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "run_tests.py" ];
|
||||
|
||||
pythonImportsCheck = [ "flake8_deprecated" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flake8 plugin that warns about deprecated method calls";
|
||||
homepage = "https://github.com/gforcada/flake8-deprecated";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ lopsided98 ];
|
||||
};
|
||||
}
|
||||
@@ -4634,8 +4634,12 @@ self: super: with self; {
|
||||
|
||||
flake8-length = callPackage ../development/python-modules/flake8-length { };
|
||||
|
||||
flake8-class-newline = callPackage ../development/python-modules/flake8-class-newline { };
|
||||
|
||||
flake8-debugger = callPackage ../development/python-modules/flake8-debugger { };
|
||||
|
||||
flake8-deprecated = callPackage ../development/python-modules/flake8-deprecated { };
|
||||
|
||||
flake8-docstrings = callPackage ../development/python-modules/flake8-docstrings { };
|
||||
|
||||
flake8-future-import = callPackage ../development/python-modules/flake8-future-import { };
|
||||
|
||||
Reference in New Issue
Block a user