2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, aiomisc
|
2023-04-29 16:46:19 +00:00
|
|
|
, aiomisc-pytest
|
2022-09-30 11:47:45 +00:00
|
|
|
, caio
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiofile";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.8.6";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mosquito";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
caio
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
aiomisc
|
2023-04-29 16:46:19 +00:00
|
|
|
aiomisc-pytest
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiofile"
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests (SystemError) fails randomly during nix-review
|
|
|
|
"test_async_open_fp"
|
|
|
|
"test_async_open_iter_chunked"
|
|
|
|
"test_async_open_iter_chunked"
|
|
|
|
"test_async_open_line_iter"
|
|
|
|
"test_async_open_line_iter"
|
|
|
|
"test_async_open_readline"
|
|
|
|
"test_async_open_unicode"
|
|
|
|
"test_async_open"
|
|
|
|
"test_binary_io_wrapper"
|
|
|
|
"test_modes"
|
|
|
|
"test_text_io_wrapper"
|
|
|
|
"test_unicode_writer"
|
|
|
|
"test_write_read_nothing"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "File operations with asyncio support";
|
|
|
|
homepage = "https://github.com/mosquito/aiofile";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/aiokitchen/aiomisc/blob/master/CHANGELOG.md";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|