python3Packages.pytest-trio: disable tests

This commit is contained in:
Jonathan Ringer 2020-08-16 17:31:08 -07:00
parent 79aaa4f2ae
commit f76046a7c2
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, trio, async_generator, hypothesis, outcome, pytest, pytestcov }: , trio, python, async_generator, hypothesis, outcome, pytest }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-trio"; pname = "pytest-trio";
@ -22,14 +22,18 @@ buildPythonPackage rec {
checkInputs = [ checkInputs = [
pytest pytest
pytestcov
hypothesis hypothesis
]; ];
# broken with pytest 5 and 6
doCheck = false;
checkPhase = '' checkPhase = ''
pytest rm pytest.ini
PYTHONPATH=$PWD:$PYTHONPATH pytest
''; '';
pythonImportsCheck = [ "pytest_trio" ];
meta = with lib; { meta = with lib; {
description = "Pytest plugin for trio"; description = "Pytest plugin for trio";
homepage = "https://github.com/python-trio/pytest-trio"; homepage = "https://github.com/python-trio/pytest-trio";