Skip to content

Commit

Permalink
Merge pull request #327220 from pyrox0/denose/cmake-lint
Browse files Browse the repository at this point in the history
cmake-lint: remove nose dependency
  • Loading branch information
Aleksanaa authored Jul 24, 2024
2 parents f395d44 + 70c7038 commit ae9c93b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pkgs/by-name/cm/cmake-lint/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
};
Expand Down

0 comments on commit ae9c93b

Please sign in to comment.