Unverified Commit ae9c93b4 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #327220 from pyrox0/denose/cmake-lint

cmake-lint: remove nose dependency
parents f395d440 70c7038f
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -18,19 +18,20 @@ python3Packages.buildPythonApplication rec {
    hash = "sha256-/OuWwerBlJynEibaYo+jkLpHt4x9GZrqMRJNxgrDBlM=";
  };

  nativeBuildInputs = [ python3Packages.setuptools ];
  postPatch = ''
    # We don't need to test coverage, so remove these checks
    substituteInPlace setup.cfg \
      --replace-fail "addopts = --cov-fail-under=84 --cov=./cmakelint" ""
  '';

  build-system = [ python3Packages.setuptools ];

  pythonImportsCheck = [ "cmakelint" ];

  nativeCheckInputs = with python3Packages; [
    pytestCheckHook
    nose
  nativeCheckInputs = [
    python3Packages.pytestCheckHook
  ];

  checkPhase = ''
    nosetests
  '';

  passthru.tests = {
    version = testers.testVersion { package = cmake-lint; };
  };