Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "aiofiles"; 13 version = "23.1.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "Tinche"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-ouBqqt0CJYxxQqbG9jn4p8zO+nKjqZgPjZpiZic67ss="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 nativeCheckInputs = [ 30 pytest-asyncio 31 pytestCheckHook 32 ]; 33 34 disabledTests = lib.optionals stdenv.isDarwin [ 35 "test_sendfile_file" 36 37 # require loopback networking: 38 "test_sendfile_socket" 39 "test_serve_small_bin_file_sync" 40 "test_serve_small_bin_file" 41 "test_slow_file" 42 ]; 43 44 pythonImportsCheck = [ 45 "aiofiles" 46 ]; 47 48 meta = with lib; { 49 description = "File support for asyncio"; 50 homepage = "https://github.com/Tinche/aiofiles"; 51 license = with licenses; [ asl20 ]; 52 maintainers = with maintainers; [ fridh ]; 53 }; 54}