Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nose2 / default.nix
blob4d6e6b3e5c83d64a6024384cccc8cbd1fa870cd5
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
6 # build-system
7 , setuptools
9 # optional-dependencies
10 , coverage
12 # tests
13 , unittestCheckHook
16 buildPythonPackage rec {
17   pname = "nose2";
18   version = "0.14.1";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-f48Dohyd4sMwFZM6/O9yv45KLV3+w7QAkih95uQbCTo=";
26   };
28   nativeBuildInputs = [
29     setuptools
30   ];
32   passthru.optional-dependencies = {
33     coverage = [
34       coverage
35     ];
36   };
38   pythonImportsCheck = [
39     "nose2"
40   ];
42   __darwinAllowLocalNetworking = true;
44   nativeCheckInputs = [
45     unittestCheckHook
46   ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
48   meta = with lib; {
49     changelog = "https://github.com/nose-devs/nose2/blob/${version}/docs/changelog.rst";
50     description = "Test runner for Python";
51     mainProgram = "nose2";
52     homepage = "https://github.com/nose-devs/nose2";
53     license = licenses.bsd0;
54     maintainers = with maintainers; [ ];
55   };