Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python3Packages.nose2: 0.9.1 -> 0.9.2 and fix build for ZHF

See inline comment; this is currently broken and not going to continue working
on python2 without significant effort, so mark it python >= 3.6 only.

https://hydra.nixos.org/build/114680648
https://hydra.nixos.org/build/115518949

CC @NixOS/nixos-release-managers

ZHF: #80379
(cherry picked from commit f9bc195430bac069d21ad0ae05aa253311c2f8c0)

+7 -6
+7 -6
pkgs/development/python-modules/nose2/default.nix
··· 3 , fetchPypi 4 , six 5 , pythonOlder 6 - , mock 7 , coverage 8 }: 9 10 buildPythonPackage rec { 11 pname = "nose2"; 12 - version = "0.9.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 - sha256 = "16drs4bc2wvgwwi1pf6pmk6c00pl16vs1v7djc4a8kwpsxpibphf"; 17 }; 18 19 - propagatedBuildInputs = [ six coverage ] 20 - ++ stdenv.lib.optionals (pythonOlder "3.4") [ mock ]; 21 22 # AttributeError: 'module' object has no attribute 'collector' 23 doCheck = false; 24 25 meta = with stdenv.lib; { 26 description = "nose2 is the next generation of nicer testing for Python"; 27 - homepage = https://github.com/nose-devs/nose2; 28 license = licenses.bsd0; 29 }; 30
··· 3 , fetchPypi 4 , six 5 , pythonOlder 6 , coverage 7 }: 8 9 buildPythonPackage rec { 10 pname = "nose2"; 11 + version = "0.9.2"; 12 + 13 + # Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5. 14 + disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 + sha256 = "0pmbb6nk31yhgh4zkcblzxsznml7f7pf5q1ihgrwvbxv4mwzfql7"; 19 }; 20 21 + propagatedBuildInputs = [ six coverage ]; 22 23 # AttributeError: 'module' object has no attribute 'collector' 24 doCheck = false; 25 26 meta = with stdenv.lib; { 27 description = "nose2 is the next generation of nicer testing for Python"; 28 + homepage = "https://github.com/nose-devs/nose2"; 29 license = licenses.bsd0; 30 }; 31