1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, coverage
6}:
7
8buildPythonPackage rec {
9 version = "1.3.7";
10 pname = "nose";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98";
15 };
16
17 propagatedBuildInputs = [ coverage ];
18
19 doCheck = false; # lot's of transient errors, too much hassle
20 checkPhase = if python.is_py3k or false then ''
21 ${python}/bin/${python.executable} setup.py build_tests
22 '' else "" + ''
23 rm functional_tests/test_multiprocessing/test_concurrent_shared.py* # see https://github.com/nose-devs/nose/commit/226bc671c73643887b36b8467b34ad485c2df062
24 ${python}/bin/${python.executable} selftest.py
25 '';
26
27 meta = with lib; {
28 description = "A unittest-based testing framework for python that makes writing and running tests easier";
29 homepage = "http://readthedocs.org/docs/nose/";
30 license = licenses.lgpl3;
31 };
32
33}