mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 00:04:14 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
46 lines
836 B
Nix
46 lines
836 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, nose
|
|
, mock
|
|
, parameterized
|
|
, termcolor
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nose-timer";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mahmoudimus";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0xsai2l5i1av62y9y0q63wy2zk27klmf2jizgghhxg2y8nfa8x3x";
|
|
};
|
|
|
|
propagatedBuildInputs = [ nose ];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
};
|
|
}
|