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