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