1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 trio, 7 hypothesis, 8 outcome, 9 pytest, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-trio"; 14 version = "0.8.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "python-trio"; 19 repo = "pytest-trio"; 20 tag = "v${version}"; 21 hash = "sha256-gUH35Yk/pBD2EdCEt8D0XQKWU8BwmX5xtAW10qRhoYk="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 buildInputs = [ pytest ]; 27 28 dependencies = [ 29 trio 30 outcome 31 ]; 32 33 nativeCheckInputs = [ 34 pytest 35 hypothesis 36 ]; 37 38 # broken with pytest 5 and 6 39 doCheck = false; 40 checkPhase = '' 41 rm pytest.ini 42 PYTHONPATH=$PWD:$PYTHONPATH pytest 43 ''; 44 45 pythonImportsCheck = [ "pytest_trio" ]; 46 47 meta = { 48 description = "Pytest plugin for trio"; 49 homepage = "https://github.com/python-trio/pytest-trio"; 50 license = with lib.licenses; [ 51 asl20 52 mit 53 ]; 54 maintainers = with lib.maintainers; [ hexa ]; 55 }; 56}