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 buildInputs = [ pytest ];
19
20 propagatedBuildInputs = [
21 tornado
22 ];
23
24 checkInputs = [
25 pytest
26 tornado
27 ];
28
29 checkPhase = ''
30 pytest test
31 '';
32
33 meta = with lib; {
34 description = "py.test plugin for testing Python 3.5+ Tornado code";
35 homepage = "https://github.com/eukaryote/pytest-tornasync";
36 license = licenses.mit;
37 maintainers = with maintainers; [ hexa ];
38 };
39}