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