Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aiofiles / default.nix
blobfe72ff28c78b6e5f76fa32b3161374cdc3fd4dfe
1 { stdenv
2 , lib
3 , buildPythonPackage
4 , fetchFromGitHub
5 , hatchling
6 , pytest-asyncio
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "aiofiles";
13   version = "23.2.1";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "Tinche";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-EbRQD/AoTMWAlPOMWmD0UdFjRyjt5MUBkJtcydUCdHM=";
23   };
25   nativeBuildInputs = [
26     hatchling
27   ];
29   nativeCheckInputs = [
30     pytest-asyncio
31     pytestCheckHook
32   ];
34   disabledTests = lib.optionals stdenv.isDarwin [
35     "test_sendfile_file"
37     # require loopback networking:
38     "test_sendfile_socket"
39     "test_serve_small_bin_file_sync"
40     "test_serve_small_bin_file"
41     "test_slow_file"
42   ];
44   pythonImportsCheck = [
45     "aiofiles"
46   ];
48   meta = with lib; {
49     description = "File support for asyncio";
50     homepage = "https://github.com/Tinche/aiofiles";
51     license = with licenses; [ asl20 ];
52     maintainers = with maintainers; [ fridh ];
53   };