python3Packages.flake8-deprecated: init at 2.2.1

This commit is contained in:
Ben Wolsieffer
2024-11-28 11:34:14 -05:00
parent 13f86a9b26
commit 3bb468326c
2 changed files with 42 additions and 0 deletions
@@ -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 ];
};
}
+2
View File
@@ -4583,6 +4583,8 @@ self: super: with self; {
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 { };