Skip to content

Commit

Permalink
python312Packages.pytest-ruff: init at 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Oct 23, 2024
1 parent 244a995 commit 08defd3
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/pytest-ruff/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
lib,
attrs,
buildPythonPackage,
fetchPypi,

# build-system
poetry-core,
poetry-dynamic-versioning,

# dependencies
pytest,
ruff,
}:

buildPythonPackage rec {
pname = "pytest-ruff";
version = "0.4.1";
pyproject = true;

src = fetchPypi {
inherit version;
pname = "pytest_ruff";
hash = "sha256-LJow8V84TCKciBtS7IbPrx5505Uw3X3V8tauviePfrc=";
};

build-system = [
poetry-core
poetry-dynamic-versioning
];

dependencies = [
pytest
ruff
];

nativeBuildInputs = [
ruff
];

pythonImportsCheck = [ "pytest_ruff" ];

meta = {
description = "A pytest plugin to run ruff";
homepage = "https://github.com/businho/pytest-ruff";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ baloo ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10362,6 +10362,8 @@ self: super: with self; {

pytest-pudb = callPackage ../development/python-modules/pytest-pudb { };

pytest-ruff = callPackage ../development/python-modules/pytest-ruff { };

pytlv = callPackage ../development/python-modules/pytlv { };

pywebcopy = callPackage ../development/python-modules/pywebcopy { };
Expand Down

0 comments on commit 08defd3

Please sign in to comment.