1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, mock
6, parameterized
7, termcolor
8}:
9
10buildPythonPackage rec {
11 pname = "nose-timer";
12 version = "1.0.1";
13
14 src = fetchFromGitHub {
15 owner = "mahmoudimus";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "0xsai2l5i1av62y9y0q63wy2zk27klmf2jizgghhxg2y8nfa8x3x";
19 };
20
21 propagatedBuildInputs = [ nose ];
22
23 checkInputs = [
24 mock
25 nose
26 parameterized
27 termcolor
28 ];
29
30 checkPhase = ''
31 runHook preCheck
32 nosetests --verbosity 2 tests
33 runHook postCheck
34 '';
35
36 pythonImportsCheck = [ "nosetimer" ];
37
38 meta = with lib; {
39 description = "A timer plugin for nosetests";
40 homepage = "https://github.com/mahmoudimus/nose-timer";
41 license = licenses.mit;
42 maintainers = with maintainers; [ doronbehar ];
43 };
44}