python3Packages.nose2: modernize (#462366)

This commit is contained in:
dotlambda
2025-11-16 21:32:25 +00:00
committed by GitHub

View File

@@ -2,7 +2,6 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchPypi,
pythonOlder,
# build-system # build-system
setuptools, setuptools,
@@ -19,17 +18,15 @@ buildPythonPackage rec {
version = "0.15.1"; version = "0.15.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-NncPUZ31vs08v+C+5Ku/v5ufa0604DNh0oK378/E8N8="; hash = "sha256-NncPUZ31vs08v+C+5Ku/v5ufa0604DNh0oK378/E8N8=";
}; };
nativeBuildInputs = [ setuptools ]; build-system = [ setuptools ];
optional-dependencies = { optional-dependencies = {
coverage = [ coverage ]; coverage_plugin = [ coverage ];
}; };
pythonImportsCheck = [ "nose2" ]; pythonImportsCheck = [ "nose2" ];
@@ -38,15 +35,14 @@ buildPythonPackage rec {
nativeCheckInputs = [ nativeCheckInputs = [
unittestCheckHook unittestCheckHook
] ];
++ lib.flatten (lib.attrValues optional-dependencies);
meta = with lib; { meta = {
changelog = "https://github.com/nose-devs/nose2/blob/${version}/docs/changelog.rst"; changelog = "https://github.com/nose-devs/nose2/blob/${version}/docs/changelog.rst";
description = "Test runner for Python"; description = "Test runner for Python";
mainProgram = "nose2"; mainProgram = "nose2";
homepage = "https://github.com/nose-devs/nose2"; homepage = "https://github.com/nose-devs/nose2";
license = licenses.bsd0; license = lib.licenses.bsd0;
maintainers = [ ]; maintainers = [ ];
}; };
} }