Files
nixpkgs/pkgs/development/python-modules/aiofile/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

65 lines
1.4 KiB
Nix

{
lib,
aiomisc,
aiomisc-pytest,
caio,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "aiofile";
version = "3.8.6";
pyproject = true;
src = fetchFromGitHub {
owner = "mosquito";
repo = "aiofile";
tag = version;
hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54=";
};
build-system = [ setuptools ];
dependencies = [ caio ];
nativeCheckInputs = [
aiomisc
aiomisc-pytest
pytestCheckHook
];
pythonImportsCheck = [ "aiofile" ];
disabledTests = [
# Tests (SystemError) fails randomly during nixpkgs-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_line_reader_one_line"
"test_modes"
"test_open_non_existent_file_with_append"
"test_text_io_wrapper"
"test_truncate"
"test_unicode_reader"
"test_unicode_writer"
"test_write_read_nothing"
];
meta = {
description = "File operations with asyncio support";
homepage = "https://github.com/mosquito/aiofile";
changelog = "https://github.com/aiokitchen/aiomisc/blob/master/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}