1{ lib
2, buildPythonPackage
3, fetchPypi
4, mock
5, pytest-asyncio
6, pytestCheckHook
7, pythonOlder
8, twisted
9, zope_interface
10}:
11
12buildPythonPackage rec {
13 pname = "txaio";
14 version = "23.1.1";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-+akhbpduXjJG39ESrXrVXKkVYGtguEp1esdpvUBP9wQ=";
22 };
23
24 propagatedBuildInputs = [
25 twisted
26 zope_interface
27 ];
28
29 nativeCheckInputs = [
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 = [
48 "txaio"
49 ];
50
51 meta = with lib; {
52 description = "Utilities to support code that runs unmodified on Twisted and asyncio";
53 homepage = "https://github.com/crossbario/txaio";
54 changelog = "https://github.com/crossbario/txaio/blob/v${version}/docs/releases.rst";
55 license = licenses.mit;
56 maintainers = with maintainers; [ ];
57 };
58}