python3Packages.nose-timer: 1.0.0 -> 1.0.1
python3Packages.nose-timer: enable tests
This commit is contained in:
parent
f92cbf3567
commit
c07c5375fd
|
@ -1,20 +1,44 @@
|
||||||
{ buildPythonPackage, fetchPypi, lib, nose, }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, nose
|
||||||
|
, mock
|
||||||
|
, parameterized
|
||||||
|
, termcolor
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nose-timer";
|
pname = "nose-timer";
|
||||||
version = "1.0.0";
|
version = "1.0.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "mahmoudimus";
|
||||||
sha256 = "09hwjwbczi06bfqgiylb2yxs5h88jdl26zi1fdqxdzvamrkksf2c";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0xsai2l5i1av62y9y0q63wy2zk27klmf2jizgghhxg2y8nfa8x3x";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ nose ];
|
propagatedBuildInputs = [ nose ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
nose
|
||||||
|
parameterized
|
||||||
|
termcolor
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
nosetests --verbosity 2 tests
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "nosetimer" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "A timer plugin for nosetests";
|
||||||
homepage = "https://github.com/mahmoudimus/nose-timer";
|
homepage = "https://github.com/mahmoudimus/nose-timer";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
description = "A timer plugin for nosetests (how much time does every test take?)";
|
|
||||||
maintainers = with maintainers; [ doronbehar ];
|
maintainers = with maintainers; [ doronbehar ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue