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

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

80 lines
1.5 KiB
Nix
Raw Normal View History

2020-01-10 06:56:52 +00:00
{ lib
, fetchFromGitHub
2021-10-01 00:36:30 +00:00
, python3
2020-01-10 06:56:52 +00:00
}:
let
2021-10-01 00:36:30 +00:00
setoptconf-tmp = python3.pkgs.callPackage ./setoptconf.nix { };
2020-01-10 06:56:52 +00:00
in
python3.pkgs.buildPythonApplication rec {
2020-01-10 06:56:52 +00:00
pname = "prospector";
2023-02-20 13:58:25 +00:00
version = "1.9.0";
2021-10-01 00:36:30 +00:00
format = "pyproject";
2022-05-07 11:23:18 +00:00
src = fetchFromGitHub {
2020-01-10 06:56:52 +00:00
owner = "PyCQA";
repo = pname;
rev = "refs/tags/v${version}";
2023-02-20 13:58:25 +00:00
hash = "sha256-94JGKX91d2kul+KMYohga9KCOj6RN/YKpD8e4nWSOOM=";
2020-01-10 06:56:52 +00:00
};
pythonRelaxDeps = [
"pyflakes"
"pep8-naming"
"flake8"
];
nativeBuildInputs = with python3.pkgs; [
2021-10-01 00:36:30 +00:00
poetry-core
pythonRelaxDepsHook
2021-10-01 00:36:30 +00:00
];
2020-01-10 06:56:52 +00:00
propagatedBuildInputs = with python3.pkgs; [
2021-10-01 00:36:30 +00:00
bandit
2020-01-10 06:56:52 +00:00
dodgy
flake8
gitpython
2020-01-10 06:56:52 +00:00
mccabe
2021-10-01 00:36:30 +00:00
mypy
2020-01-10 06:56:52 +00:00
pep8-naming
pycodestyle
pydocstyle
pyflakes
pylint
pylint-celery
pylint-django
pylint-flask
2021-10-01 00:36:30 +00:00
pylint-plugin-utils
pyroma
2020-01-10 06:56:52 +00:00
pyyaml
requirements-detector
2021-10-01 00:36:30 +00:00
setoptconf-tmp
setuptools
toml
vulture
];
nativeCheckInputs = with python3.pkgs; [
2021-10-01 00:36:30 +00:00
pytestCheckHook
2020-01-10 06:56:52 +00:00
];
pythonImportsCheck = [
"prospector"
];
disabledTestPaths = [
# distutils.errors.DistutilsArgError: no commands supplied
"tests/tools/pyroma/test_pyroma_tool.py"
];
2020-01-10 06:56:52 +00: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";
2022-12-20 16:50:55 +00:00
changelog = "https://github.com/PyCQA/prospector/blob/v${version}/CHANGELOG.rst";
2022-05-07 11:23:18 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ kamadorueda ];
2020-01-10 06:56:52 +00:00
};
}