@@ -0,0 +1,34 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, setuptools_scm
5+, pytest
6+, pytest-mock
7+, pythonOlder
8+, faulthandler
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "pytest-faulthandler";
13+ version = "1.5.0";
14+
15+ src = fetchPypi {
16+ inherit pname version;
17+ sha256 = "bf8634c3fd6309ef786ec03b913a5366163fdb094ebcfdebc35626400d790e0d";
18+ };
19+
20+ buildInputs = [ setuptools_scm pytest ];
21+ checkInputs = [ pytest-mock ];
22+ propagatedBuildInputs = lib.optional (pythonOlder "3.0") faulthandler;
23+
24+ checkPhase = ''
25+ py.test
26+ '';
27+
28+ meta = {
29+ description = "Py.test plugin that activates the fault handler module for tests";
30+ homepage = https://github.com/pytest-dev/pytest-faulthandler;
31+ license = lib.licenses.mit;
32+ maintainers = with lib.maintainers; [ costrouc ];
33+ };
34+}