mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00

$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
52 lines
1001 B
Nix
52 lines
1001 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# optional-dependencies
|
|
coverage,
|
|
|
|
# tests
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nose2";
|
|
version = "0.15.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NncPUZ31vs08v+C+5Ku/v5ufa0604DNh0oK378/E8N8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
passthru.optional-dependencies = {
|
|
coverage = [ coverage ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "nose2" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
|
|
|
meta = with lib; {
|
|
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;
|
|
maintainers = [ ];
|
|
};
|
|
}
|