1{ lib
2, buildPythonPackage
3, fetchPypi
4, mock
5, pytest-asyncio
6, pytestCheckHook
7, pythonOlder
8, six
9, twisted
10, zope_interface
11}:
12
13buildPythonPackage rec {
14 pname = "txaio";
15 version = "21.2.1";
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-fW+JdFaAIz8cTbndt0jfXojSp6N5Yr4XTA/QTI26Hcg=";
21 };
22
23 propagatedBuildInputs = [
24 six
25 twisted
26 zope_interface
27 ];
28
29 checkInputs = [
30 mock
31 pytest-asyncio
32 pytestCheckHook
33 ];
34
35 disabledTests = [
36 # No real value
37 "test_sdist"
38 # Some tests seems out-dated and require additional data
39 "test_as_future"
40 "test_errback"
41 "test_create_future"
42 "test_callback"
43 "test_immediate_result"
44 "test_cancel"
45 ];
46
47 pythonImportsCheck = [ "txaio" ];
48
49 meta = with lib; {
50 description = "Utilities to support code that runs unmodified on Twisted and asyncio";
51 homepage = "https://github.com/crossbario/txaio";
52 license = licenses.mit;
53 maintainers = with maintainers; [ ];
54 };
55}