1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 isPy27, 6 pytest, 7 tornado, 8}: 9 10buildPythonPackage { 11 pname = "pytest-tornasync"; 12 version = "0.6.0.post2"; 13 format = "setuptools"; 14 disabled = isPy27; 15 16 src = fetchFromGitHub { 17 owner = "eukaryote"; 18 repo = "pytest-tornasync"; 19 # upstream does not keep git tags in sync with pypy releases 20 # https://github.com/eukaryote/pytest-tornasync/issues/9 21 rev = "c5f013f1f727f1ca1fcf8cc748bba7f4a2d79e56"; 22 sha256 = "04cg1cfrr55dbi8nljkpcsc103i5c6p0nr46vjr0bnxgkxx03x36"; 23 }; 24 25 buildInputs = [ pytest ]; 26 27 propagatedBuildInputs = [ tornado ]; 28 29 __darwinAllowLocalNetworking = true; 30 31 nativeCheckInputs = [ 32 pytest 33 tornado 34 ]; 35 36 checkPhase = '' 37 pytest test 38 ''; 39 40 meta = with lib; { 41 description = "py.test plugin for testing Python 3.5+ Tornado code"; 42 homepage = "https://github.com/eukaryote/pytest-tornasync"; 43 license = licenses.mit; 44 maintainers = [ ]; 45 }; 46}