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