c29273470b
Diff: https://github.com/erdewit/nest_asyncio/compare/refs/tags/v1.5.6...v1.6.0 Changelog: https://github.com/erdewit/nest_asyncio/releases/tag/v1.6.0
44 lines
894 B
Nix
44 lines
894 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nest-asyncio";
|
|
version = "1.6.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "erdewit";
|
|
repo = "nest_asyncio";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-5I5WItOl1QpyI4OXZgZf8GiQ7Jlo+SJbDicIbernaU4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"nest_asyncio"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Patch asyncio to allow nested event loops";
|
|
homepage = "https://github.com/erdewit/nest_asyncio";
|
|
changelog = "https://github.com/erdewit/nest_asyncio/releases/tag/v${version}";
|
|
license = licenses.bsdOriginal;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|