Files
nixpkgs/pkgs/development/python-modules/aiofiles/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

50 lines
1014 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiofiles";
version = "24.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Tinche";
repo = "aiofiles";
tag = "v${version}";
hash = "sha256-uDKDMSNbMIlAaifpEBh1+q2bdZNUia8pPb30IOIgOAE=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
"test_sendfile_file"
# require loopback networking:
"test_sendfile_socket"
"test_serve_small_bin_file_sync"
"test_serve_small_bin_file"
"test_slow_file"
];
pythonImportsCheck = [ "aiofiles" ];
meta = {
description = "File support for asyncio";
homepage = "https://github.com/Tinche/aiofiles";
changelog = "https://github.com/Tinche/aiofiles/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}