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