at master 1.5 kB view raw
1{ 2 lib, 3 aiomisc, 4 aiomisc-pytest, 5 caio, 6 buildPythonPackage, 7 fetchFromGitHub, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "aiofile"; 15 version = "3.8.6"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "mosquito"; 22 repo = "aiofile"; 23 tag = version; 24 hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ caio ]; 30 31 nativeCheckInputs = [ 32 aiomisc 33 aiomisc-pytest 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "aiofile" ]; 38 39 disabledTests = [ 40 # Tests (SystemError) fails randomly during nixpkgs-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_line_reader_one_line" 51 "test_modes" 52 "test_open_non_existent_file_with_append" 53 "test_text_io_wrapper" 54 "test_truncate" 55 "test_unicode_reader" 56 "test_unicode_writer" 57 "test_write_read_nothing" 58 ]; 59 60 meta = with lib; { 61 description = "File operations with asyncio support"; 62 homepage = "https://github.com/mosquito/aiofile"; 63 changelog = "https://github.com/aiokitchen/aiomisc/blob/master/CHANGELOG.md"; 64 license = licenses.asl20; 65 maintainers = with maintainers; [ fab ]; 66 }; 67}