1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, six
6, pythonOlder
7, coverage
8}:
9
10buildPythonPackage rec {
11 pname = "nose2";
12 version = "0.10.0";
13
14 # Requires mock 2.0.0 if python < 3.6, but NixPkgs has mock 3.0.5.
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "886ba617a96de0130c54b24479bd5c2d74d5c940d40f3809c3a275511a0c4a60";
20 };
21
22 propagatedBuildInputs = [ six coverage ];
23
24 checkPhase = ''
25 ${python.interpreter} -m unittest
26 '';
27
28 meta = with lib; {
29 description = "nose2 is the next generation of nicer testing for Python";
30 homepage = "https://github.com/nose-devs/nose2";
31 license = licenses.bsd0;
32 };
33
34}