Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder 2, trio, python, async_generator, hypothesis, outcome, pytest }: 3 4buildPythonPackage rec { 5 pname = "pytest-trio"; 6 version = "0.6.0"; 7 disabled = pythonOlder "3.5"; 8 9 src = fetchFromGitHub { 10 owner = "python-trio"; 11 repo = pname; 12 rev = "v${version}"; 13 sha256 = "09v2031yxm8ryhq12205ldcck76n3wwqhjjsgfmn6dxfiqb0vbw9"; 14 }; 15 16 propagatedBuildInputs = [ 17 trio 18 async_generator 19 outcome 20 pytest 21 ]; 22 23 checkInputs = [ 24 pytest 25 hypothesis 26 ]; 27 28 # broken with pytest 5 and 6 29 doCheck = false; 30 checkPhase = '' 31 rm pytest.ini 32 PYTHONPATH=$PWD:$PYTHONPATH pytest 33 ''; 34 35 pythonImportsCheck = [ "pytest_trio" ]; 36 37 meta = with lib; { 38 description = "Pytest plugin for trio"; 39 homepage = "https://github.com/python-trio/pytest-trio"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ hexa ]; 42 }; 43}