1{ stdenv, buildPythonPackage, fetchPypi, pytest_3, mock, six, twisted,isPy37 }:
2
3buildPythonPackage rec {
4 pname = "txaio";
5 version = "18.8.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "67e360ac73b12c52058219bb5f8b3ed4105d2636707a36a7cdafb56fe06db7fe";
10 };
11
12 checkInputs = [ pytest_3 mock ];
13
14 propagatedBuildInputs = [ six twisted ];
15
16 checkPhase = ''
17 py.test -k "not test_sdist"
18 '';
19
20 # Needs some fixing for 3.7
21 doCheck = !isPy37;
22
23 meta = with stdenv.lib; {
24 description = "Utilities to support code that runs unmodified on Twisted and asyncio.";
25 homepage = "https://github.com/crossbario/txaio";
26 license = licenses.mit;
27 maintainers = with maintainers; [ nand0p ];
28 };
29}