2020-01-29 13:26:46 -05:00
|
|
|
{ lib
|
2018-09-20 15:57:05 -04:00
|
|
|
, buildPythonPackage
|
2024-02-25 14:02:33 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2018-09-20 15:57:05 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-02-25 14:02:33 +01:00
|
|
|
pname = "nest-asyncio";
|
2022-12-30 20:13:27 +01:00
|
|
|
version = "1.5.6";
|
2024-02-25 14:02:33 +01:00
|
|
|
pyproject = true;
|
2018-09-20 15:57:05 -04:00
|
|
|
|
2024-02-25 14:02:33 +01:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "erdewit";
|
|
|
|
repo = "nest_asyncio";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-DxIHDU/3OP3AF/abQs3Y6Im6VUiHYgMmVVh4fDeT8gk=";
|
2018-09-20 15:57:05 -04:00
|
|
|
};
|
|
|
|
|
2024-02-25 14:02:33 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nest_asyncio"
|
|
|
|
];
|
2020-01-21 16:10:28 -05:00
|
|
|
|
2020-01-29 13:26:46 -05:00
|
|
|
meta = with lib; {
|
2018-09-20 15:57:05 -04:00
|
|
|
description = "Patch asyncio to allow nested event loops";
|
2020-01-29 13:26:46 -05:00
|
|
|
homepage = "https://github.com/erdewit/nest_asyncio";
|
2024-02-25 14:02:33 +01:00
|
|
|
changelog = "https://github.com/erdewit/nest_asyncio/releases/tag/v${version}";
|
2018-09-20 15:57:05 -04:00
|
|
|
license = licenses.bsdOriginal;
|
2023-06-30 17:53:25 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-09-20 15:57:05 -04:00
|
|
|
};
|
|
|
|
}
|