depot/third_party/nixpkgs/pkgs/development/python-modules/flake8-bugbear/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

49 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, attrs
, flake8
, pytestCheckHook
, pythonOlder
, hypothesis
, hypothesmith
}:
buildPythonPackage rec {
pname = "flake8-bugbear";
version = "23.5.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-qjR6WbgewVdmxubtEK6BdZv6zXgp0B9bQLxana3o+WU=";
};
propagatedBuildInputs = [
attrs
flake8
];
nativeCheckInputs = [
flake8
pytestCheckHook
hypothesis
hypothesmith
];
meta = with lib; {
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/${version}/README.rst#change-log";
longDescription = ''
A plugin for flake8 finding likely bugs and design problems in your
program.
'';
license = licenses.mit;
maintainers = with maintainers; [ newam ];
};
}