nixpkgs/pkgs/development/tools/prospector/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.3 KiB
Nix
Raw Normal View History

2020-01-10 07:56:52 +01:00
{ lib
, pkgs
2021-10-01 02:36:30 +02:00
, python3
2020-01-10 07:56:52 +01:00
}:
let
2021-10-01 02:36:30 +02:00
setoptconf-tmp = python3.pkgs.callPackage ./setoptconf.nix { };
2020-01-10 07:56:52 +01:00
in
2021-10-01 02:36:30 +02:00
with python3.pkgs;
2020-01-10 07:56:52 +01:00
buildPythonApplication rec {
pname = "prospector";
2021-10-01 02:36:30 +02:00
version = "1.5.1";
format = "pyproject";
disabled = pythonOlder "3.6.1";
2020-01-10 07:56:52 +01:00
src = pkgs.fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = version;
2021-10-01 02:36:30 +02:00
sha256 = "17f822cxrvcvnrzdx1a9fyi9afljq80b6g6z1k2bqa1vs21gwv7l";
2020-01-10 07:56:52 +01:00
};
2021-10-01 02:36:30 +02:00
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'pep8-naming = ">=0.3.3,<=0.10.0"' 'pep8-naming = "*"'
2020-01-10 07:56:52 +01:00
'';
2021-10-01 02:36:30 +02:00
nativeBuildInputs = [
poetry-core
];
2020-01-10 07:56:52 +01:00
propagatedBuildInputs = [
2021-10-01 02:36:30 +02:00
bandit
2020-01-10 07:56:52 +01:00
dodgy
mccabe
2021-10-01 02:36:30 +02:00
mypy
2020-01-10 07:56:52 +01:00
pep8-naming
pycodestyle
pydocstyle
pyflakes
pylint
pylint-celery
pylint-django
pylint-flask
2021-10-01 02:36:30 +02:00
pylint-plugin-utils
pyroma
2020-01-10 07:56:52 +01:00
pyyaml
requirements-detector
2021-10-01 02:36:30 +02:00
setoptconf-tmp
setuptools
toml
vulture
];
checkInputs = [
pytestCheckHook
2020-01-10 07:56:52 +01:00
];
meta = with lib; {
description = "Tool to analyse Python code and output information about errors, potential problems, convention violations and complexity";
homepage = "https://github.com/PyCQA/prospector";
license = licenses.gpl2;
maintainers = with maintainers; [
kamadorueda
];
};
}