2021-08-26 11:29:00 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2017-06-04 11:24:32 +01:00
|
|
|
, buildPythonPackage
|
2021-08-24 09:15:32 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2017-06-04 11:24:32 +01:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiofiles";
|
2021-06-18 22:47:07 +01:00
|
|
|
version = "0.7.0";
|
2021-08-24 09:15:32 +01:00
|
|
|
format = "pyproject";
|
2017-06-04 11:24:32 +01:00
|
|
|
|
2021-08-24 09:15:32 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tinche";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0vvk9j8cfdqvq8hw2qc6ajfzsy8x1afabf83mxafffq92rwknd4y";
|
2017-06-04 11:24:32 +01:00
|
|
|
};
|
|
|
|
|
2021-08-24 09:15:32 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-06-04 11:24:32 +01:00
|
|
|
|
2021-08-26 11:29:00 +01:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
"test_sendfile_file"
|
|
|
|
];
|
|
|
|
|
2021-08-24 09:15:32 +01:00
|
|
|
pythonImportsCheck = [ "aiofiles" ];
|
2017-06-04 11:24:32 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "File support for asyncio";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Tinche/aiofiles";
|
2017-06-04 11:24:32 +01:00
|
|
|
license = with lib.licenses; [ asl20 ];
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2017-06-04 11:24:32 +01:00
|
|
|
};
|
2017-12-05 22:20:11 +00:00
|
|
|
}
|