depot/third_party/nixpkgs/pkgs/development/python-modules/nest-asyncio/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

41 lines
873 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 = [ ];
};
}