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