python3Packages.vulture: switch to pytestCheckHook
This commit is contained in:
parent
f2c5d663b2
commit
eecfd010c7
@ -1,4 +1,12 @@
|
|||||||
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, coverage, pytest, pytestcov }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, coverage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, pytest-cov
|
||||||
|
, pytestCheckHook
|
||||||
|
, toml
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "vulture";
|
pname = "vulture";
|
||||||
@ -10,8 +18,15 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0ryrmsm72z3fzaanyblz49q40h9d3bbl4pspn2lvkkp9rcmsdm83";
|
sha256 = "0ryrmsm72z3fzaanyblz49q40h9d3bbl4pspn2lvkkp9rcmsdm83";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ coverage pytest pytestcov ];
|
propagatedBuildInputs = [ toml ];
|
||||||
checkPhase = "pytest";
|
|
||||||
|
checkInputs = [
|
||||||
|
coverage
|
||||||
|
pytest-cov
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "vulture" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Finds unused code in Python programs";
|
description = "Finds unused code in Python programs";
|
||||||
|
Loading…
Reference in New Issue
Block a user