a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, attrs
|
|
, flake8
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, hypothesis
|
|
, hypothesmith
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flake8-bugbear";
|
|
version = "22.12.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyCQA";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/XV0dwCkp1kOrXepEaPPEWefBphGB6rQPeTWmo3cHPY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
flake8
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|