git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pytest-faulthandler: init at 1.5.0

- compatible with 2.7 and 3+ - all test pass.

commit5704642a3f8dd29ef6e280de69171186ca327b6a authorChris Ostrouchov <chris.ostrouchov@gmail.com> dateWed 8 Aug 2018, 15:25 (8 years ago) parent7e192a5
2 files changed+36
pkgs/development/python-modules/pytest-faulthandler/default.nix+34 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pytest-faulthandler/default.nixnew file+34
@@ -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+}
pkgs/top-level/python-packages.nix+2
@@ -1885,6 +1885,8 @@ in {
18851885
18861886 pytest-django = callPackage ../development/python-modules/pytest-django { };
18871887
1888+ pytest-faulthandler = callPackage ../development/python-modules/pytest-faulthandler { };
1889+
18881890 pytest-fixture-config = callPackage ../development/python-modules/pytest-fixture-config { };
18891891
18901892 pytest-forked = callPackage ../development/python-modules/pytest-forked { };