2018-08-08 20:25:40 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pytest
|
|
|
|
, pytest-mock
|
|
|
|
, pythonOlder
|
|
|
|
, faulthandler
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-faulthandler";
|
2019-06-18 01:00:25 +01:00
|
|
|
version = "1.6.0";
|
2018-08-08 20:25:40 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-18 01:00:25 +01:00
|
|
|
sha256 = "1bvfy6yyh2zlsrkpfmxy17149752m9y6ji9d34qp44bnci83dkjq";
|
2018-08-08 20:25:40 +01:00
|
|
|
};
|
|
|
|
|
2019-03-26 07:49:58 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm pytest ];
|
2018-08-08 20:25:40 +01:00
|
|
|
checkInputs = [ pytest-mock ];
|
|
|
|
propagatedBuildInputs = lib.optional (pythonOlder "3.0") faulthandler;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Py.test plugin that activates the fault handler module for tests";
|
|
|
|
homepage = https://github.com/pytest-dev/pytest-faulthandler;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|