depot/third_party/nixpkgs/pkgs/development/python-modules/aiofile/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

62 lines
1.2 KiB
Nix

{ lib
, aiomisc
, asynctest
, caio
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiofile";
version = "3.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mosquito";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-PIImQZ1ymazsOg8qmlO91tNYHwXqK/d8AuKPsWYvh0w=";
};
propagatedBuildInputs = [
caio
];
checkInputs = [
aiomisc
asynctest
pytestCheckHook
];
pythonImportsCheck = [
"aiofile"
];
disabledTests = [
# Tests (SystemError) fails randomly during nix-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_modes"
"test_text_io_wrapper"
"test_unicode_writer"
"test_write_read_nothing"
];
meta = with lib; {
description = "File operations with asyncio support";
homepage = "https://github.com/mosquito/aiofile";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}