1{ lib 2, aiomisc 3, aiomisc-pytest 4, caio 5, buildPythonPackage 6, fetchFromGitHub 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "aiofile"; 13 version = "3.8.6"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "mosquito"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54="; 23 }; 24 25 propagatedBuildInputs = [ 26 caio 27 ]; 28 29 nativeCheckInputs = [ 30 aiomisc 31 aiomisc-pytest 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "aiofile" 37 ]; 38 39 disabledTests = [ 40 # Tests (SystemError) fails randomly during nix-review 41 "test_async_open_fp" 42 "test_async_open_iter_chunked" 43 "test_async_open_iter_chunked" 44 "test_async_open_line_iter" 45 "test_async_open_line_iter" 46 "test_async_open_readline" 47 "test_async_open_unicode" 48 "test_async_open" 49 "test_binary_io_wrapper" 50 "test_modes" 51 "test_text_io_wrapper" 52 "test_unicode_writer" 53 "test_write_read_nothing" 54 ]; 55 56 meta = with lib; { 57 description = "File operations with asyncio support"; 58 homepage = "https://github.com/mosquito/aiofile"; 59 changelog = "https://github.com/aiokitchen/aiomisc/blob/master/CHANGELOG.md"; 60 license = licenses.asl20; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}