Files
nixpkgs/pkgs/development/python-modules/aiofiles/default.nix
T
Frederik Rietdijk 5772ac5a75 Removing FRidh as active maintainer of packages
In the past I was very active with Python packaging.
For several years now I was hardly around as maintainer,
so it does not make sense I am listed as a maintainer for
these makes. Looking back, I should have removed myself
as maintainer already much longer ago. Anyway, better late
than never.

It's been a fun ride, and  I do intend to occasionally contribute
to Nixpkgs, but not in the same way it once was.
2024-04-28 12:20:07 +02:00

54 lines
979 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiofiles";
version = "23.2.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Tinche";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-EbRQD/AoTMWAlPOMWmD0UdFjRyjt5MUBkJtcydUCdHM=";
};
nativeBuildInputs = [
hatchling
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = lib.optionals stdenv.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 = with lib; {
description = "File support for asyncio";
homepage = "https://github.com/Tinche/aiofiles";
license = with licenses; [ asl20 ];
};
}