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