mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 20:17:37 +00:00
prospector: relax requirements-detector constraint
This commit is contained in:
parent
6895219b61
commit
9d1932e38b
@ -1,5 +1,5 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
@ -14,21 +14,15 @@ buildPythonApplication rec {
|
||||
version = "1.7.7";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6.1";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-sbPZmVeJtNphtjuZEfKcUgty9bJ3E/2Ya9RuX3u/XEs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'pep8-naming = ">=0.3.3,<=0.10.0"' 'pep8-naming = "*"' \
|
||||
--replace 'mccabe = "^0.6.0"' 'mccabe = "*"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
@ -60,6 +54,17 @@ buildPythonApplication rec {
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'requirements-detector = "^0.7"' 'requirements-detector = "*"' \
|
||||
--replace 'pep8-naming = ">=0.3.3,<=0.10.0"' 'pep8-naming = "*"' \
|
||||
--replace 'mccabe = "^0.6.0"' 'mccabe = "*"'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"prospector"
|
||||
];
|
||||
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user