mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
cpplint: 2.0.0 -> 2.0.1 (#395471)
This commit is contained in:
commit
e23ecefea2
1 changed files with 8 additions and 7 deletions
|
@ -7,20 +7,20 @@
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "cpplint";
|
pname = "cpplint";
|
||||||
version = "2.0.0";
|
version = "2.0.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cpplint";
|
owner = "cpplint";
|
||||||
repo = "cpplint";
|
repo = "cpplint";
|
||||||
tag = version;
|
tag = version;
|
||||||
hash = "sha256-076363ZwcriPb+Fn9S5jay8oL+LlBTNh+IqQRCAndRo=";
|
hash = "sha256-IM1XznnpdL1Piei9kKR1nCwfs7TVgLcTgMI4r+cQXLg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# We use pytest-cov-stub instead
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace pyproject.toml \
|
||||||
--replace-fail "pytest-cov" "" \
|
--replace-fail '"pytest-cov",' ""
|
||||||
--replace-fail "--cov-fail-under=90 --cov=cpplint" ""
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
build-system = with python3Packages; [
|
||||||
|
@ -29,12 +29,13 @@ python3Packages.buildPythonApplication rec {
|
||||||
|
|
||||||
nativeCheckInputs = with python3Packages; [
|
nativeCheckInputs = with python3Packages; [
|
||||||
parameterized
|
parameterized
|
||||||
pytestCheckHook
|
pytest-cov-stub
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
|
pytestCheckHook
|
||||||
testfixtures
|
testfixtures
|
||||||
versionCheckHook
|
versionCheckHook
|
||||||
];
|
];
|
||||||
versionCheckProgramArg = [ "--version" ];
|
versionCheckProgramArg = "--version";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/cpplint/cpplint";
|
homepage = "https://github.com/cpplint/cpplint";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue