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

cmake-lint: remove nose dependency
This commit is contained in:
Aleksana 2024-07-24 23:45:40 +08:00 committed by GitHub
commit ae9c93b4f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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; };
};