From fcb4e4480c548aaf5f3d775feea50840e549b4ea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Oct 2025 01:07:55 +0200 Subject: [PATCH] python313Packages.pytest-pycodestyle: init at 2.5.0 Pytest plugin to run pycodestyle https://github.com/henry0312/pytest-pycodestyle --- .../pytest-pycodestyle/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-pycodestyle/default.nix diff --git a/pkgs/development/python-modules/pytest-pycodestyle/default.nix b/pkgs/development/python-modules/pytest-pycodestyle/default.nix new file mode 100644 index 000000000000..f51e8d124a39 --- /dev/null +++ b/pkgs/development/python-modules/pytest-pycodestyle/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycodestyle, + pytest-isort, + pytest, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "pytest-pycodestyle"; + version = "2.5.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "henry0312"; + repo = "pytest-pycodestyle"; + tag = "v${version}"; + hash = "sha256-X/vacxI0RFHIqlZ2omzvvFDePS/SZYSFQHEmfcbvf/4="; + }; + + build-system = [ setuptools ]; + + buildInputs = [ pytest ]; + + dependencies = [ pycodestyle ]; + + nativeCheckInputs = [ + pytest-isort + pytestCheckHook + ]; + + pythonImportsCheck = [ "pytest_pycodestyle" ]; + + meta = { + description = "Pytest plugin to run pycodestyle"; + homepage = "https://github.com/henry0312/pytest-pycodestyle"; + changelog = "https://github.com/henry0312/pytest-pycodestyle/releases/tag/${src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 57a9b0966e50..1782cf5592fa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14565,6 +14565,8 @@ self: super: with self; { pytest-pudb = callPackage ../development/python-modules/pytest-pudb { }; + pytest-pycodestyle = callPackage ../development/python-modules/pytest-pycodestyle { }; + pytest-pylint = callPackage ../development/python-modules/pytest-pylint { }; pytest-pytestrail = callPackage ../development/python-modules/pytest-pytestrail { };