1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 nose,
7}:
8
9buildPythonPackage rec {
10 pname = "yanc";
11 version = "0.3.3";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "0z35bkk9phs40lf5061k1plhjdl5fskm0dmdikrsqi1bjihnxp8w";
17 };
18
19 # Tests fail on Python>=3.5. See: https://github.com/0compute/yanc/issues/10
20 doCheck = pythonOlder "3.5";
21
22 nativeCheckInputs = [ nose ];
23
24 checkPhase = ''
25 nosetests .
26 '';
27
28 meta = with lib; {
29 description = "Yet another nose colorer";
30 homepage = "https://github.com/0compute/yanc";
31 license = licenses.gpl3;
32 maintainers = with maintainers; [ jluttine ];
33 };
34}