python313Packages.publicsuffixlist: 1.0.2.20250122 -> 1.0.2.20250124 (#376319)
[NixPkgs.git] / pkgs / development / python-modules / aiofile / default.nix
blob2a7f28b351516b9c227f93be218746d2929ea6e9
2   lib,
3   aiomisc,
4   aiomisc-pytest,
5   caio,
6   buildPythonPackage,
7   fetchFromGitHub,
8   pytestCheckHook,
9   pythonOlder,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "aiofile";
15   version = "3.8.6";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "mosquito";
22     repo = "aiofile";
23     tag = version;
24     hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54=";
25   };
27   build-system = [ setuptools ];
29   dependencies = [ caio ];
31   nativeCheckInputs = [
32     aiomisc
33     aiomisc-pytest
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [ "aiofile" ];
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   ];
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   };