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