diff --git a/pkgs/development/python-modules/nose-timer/default.nix b/pkgs/development/python-modules/nose-timer/default.nix index c93f5bda983..bbc164c85e2 100644 --- a/pkgs/development/python-modules/nose-timer/default.nix +++ b/pkgs/development/python-modules/nose-timer/default.nix @@ -1,20 +1,44 @@ -{ buildPythonPackage, fetchPypi, lib, nose, }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, nose +, mock +, parameterized +, termcolor +}: buildPythonPackage rec { pname = "nose-timer"; - version = "1.0.0"; + version = "1.0.1"; - src = fetchPypi { - inherit pname version; - sha256 = "09hwjwbczi06bfqgiylb2yxs5h88jdl26zi1fdqxdzvamrkksf2c"; + src = fetchFromGitHub { + owner = "mahmoudimus"; + repo = pname; + rev = "v${version}"; + sha256 = "0xsai2l5i1av62y9y0q63wy2zk27klmf2jizgghhxg2y8nfa8x3x"; }; propagatedBuildInputs = [ nose ]; + checkInputs = [ + mock + nose + parameterized + termcolor + ]; + + checkPhase = '' + runHook preCheck + nosetests --verbosity 2 tests + runHook postCheck + ''; + + pythonImportsCheck = [ "nosetimer" ]; + meta = with lib; { + description = "A timer plugin for nosetests"; homepage = "https://github.com/mahmoudimus/nose-timer"; license = licenses.mit; - description = "A timer plugin for nosetests (how much time does every test take?)"; maintainers = with maintainers; [ doronbehar ]; }; }