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
This commit is contained in:
parent
167ed90749
commit
f9bc195430
@ -3,28 +3,29 @@
|
|||||||
, fetchPypi
|
, fetchPypi
|
||||||
, six
|
, six
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, mock
|
|
||||||
, coverage
|
, coverage
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nose2";
|
pname = "nose2";
|
||||||
version = "0.9.1";
|
version = "0.9.2";
|
||||||
|
|
||||||
|
# Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5.
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "16drs4bc2wvgwwi1pf6pmk6c00pl16vs1v7djc4a8kwpsxpibphf";
|
sha256 = "0pmbb6nk31yhgh4zkcblzxsznml7f7pf5q1ihgrwvbxv4mwzfql7";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six coverage ]
|
propagatedBuildInputs = [ six coverage ];
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.4") [ mock ];
|
|
||||||
|
|
||||||
# AttributeError: 'module' object has no attribute 'collector'
|
# AttributeError: 'module' object has no attribute 'collector'
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "nose2 is the next generation of nicer testing for Python";
|
description = "nose2 is the next generation of nicer testing for Python";
|
||||||
homepage = https://github.com/nose-devs/nose2;
|
homepage = "https://github.com/nose-devs/nose2";
|
||||||
license = licenses.bsd0;
|
license = licenses.bsd0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user