1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6
7 # build-system
8 setuptools,
9
10 # optional-dependencies
11 coverage,
12
13 # tests
14 unittestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "nose2";
19 version = "0.14.1";
20 pyproject = true;
21
22 disabled = pythonOlder "3.8";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-f48Dohyd4sMwFZM6/O9yv45KLV3+w7QAkih95uQbCTo=";
27 };
28
29 nativeBuildInputs = [ setuptools ];
30
31 passthru.optional-dependencies = {
32 coverage = [ coverage ];
33 };
34
35 pythonImportsCheck = [ "nose2" ];
36
37 __darwinAllowLocalNetworking = true;
38
39 nativeCheckInputs = [
40 unittestCheckHook
41 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
42
43 meta = with lib; {
44 changelog = "https://github.com/nose-devs/nose2/blob/${version}/docs/changelog.rst";
45 description = "Test runner for Python";
46 mainProgram = "nose2";
47 homepage = "https://github.com/nose-devs/nose2";
48 license = licenses.bsd0;
49 maintainers = with maintainers; [ ];
50 };
51}