diff options
Diffstat (limited to 'pkgs/development/tools/prospector/default.nix')
-rw-r--r-- | pkgs/development/tools/prospector/default.nix | 55 |
1 files changed, 25 insertions, 30 deletions
diff --git a/pkgs/development/tools/prospector/default.nix b/pkgs/development/tools/prospector/default.nix index 38472ce86f0..2f58737637f 100644 --- a/pkgs/development/tools/prospector/default.nix +++ b/pkgs/development/tools/prospector/default.nix @@ -1,55 +1,41 @@ { lib , pkgs -, python +, python3 }: let - py = python.override { - packageOverrides = self: super: { - pep8-naming = super.pep8-naming.overridePythonAttrs(oldAttrs: rec { - version = "0.4.1"; - src = oldAttrs.src.override { - inherit version; - sha256 = "0nhf8p37y008shd4f21bkj5pizv8q0l8cpagyyb8gr059d6gvvaf"; - }; - }); - }; - }; - setoptconf = py.pkgs.callPackage ./setoptconf.nix { }; + setoptconf-tmp = python3.pkgs.callPackage ./setoptconf.nix { }; in -with py.pkgs; +with python3.pkgs; buildPythonApplication rec { pname = "prospector"; - version = "1.2.0"; - disabled = isPy27; + version = "1.5.1"; + format = "pyproject"; + disabled = pythonOlder "3.6.1"; src = pkgs.fetchFromGitHub { owner = "PyCQA"; repo = pname; rev = version; - sha256 = "07kb37zrrsriqzcmli0ghx7qb1iwkzh83qsiikl9jy50faby2sjg"; + sha256 = "17f822cxrvcvnrzdx1a9fyi9afljq80b6g6z1k2bqa1vs21gwv7l"; }; - checkInputs = [ - pytest - ]; - - checkPhase = '' - pytest + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'pep8-naming = ">=0.3.3,<=0.10.0"' 'pep8-naming = "*"' ''; - patchPhase = '' - substituteInPlace setup.py \ - --replace 'pycodestyle<=2.4.0' 'pycodestyle<=2.5.0' - ''; + nativeBuildInputs = [ + poetry-core + ]; propagatedBuildInputs = [ - astroid - django + bandit dodgy mccabe + mypy pep8-naming pycodestyle pydocstyle @@ -58,9 +44,18 @@ buildPythonApplication rec { pylint-celery pylint-django pylint-flask + pylint-plugin-utils + pyroma pyyaml requirements-detector - setoptconf + setoptconf-tmp + setuptools + toml + vulture + ]; + + checkInputs = [ + pytestCheckHook ]; meta = with lib; { |