Files
nixpkgs/pkgs/development/python-modules/flake8-bugbear/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
attrs,
flake8,
pytestCheckHook,
pythonOlder,
hypothesis,
hypothesmith,
setuptools,
}:
buildPythonPackage rec {
pname = "flake8-bugbear";
version = "25.10.21";
pyproject = true;
src = fetchFromGitHub {
owner = "PyCQA";
repo = "flake8-bugbear";
tag = version;
hash = "sha256-4ZTi1w+L0M6LCB4G+OxHBnUV0f6s/JPY6tKOt1zh7So=";
};
build-system = [ setuptools ];
dependencies = [
attrs
flake8
];
nativeCheckInputs = [
flake8
pytestCheckHook
hypothesis
hypothesmith
];
pythonImportsCheck = [ "bugbear" ];
meta = {
description = "Plugin for Flake8 to find bugs and design problems";
homepage = "https://github.com/PyCQA/flake8-bugbear";
changelog = "https://github.com/PyCQA/flake8-bugbear/blob/${src.tag}/README.rst#change-log";
longDescription = ''
A plugin for flake8 finding likely bugs and design problems in your
program.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ newam ];
};
}