1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 16:39:31 +03:00
nixpkgs/pkgs/development/python-modules/nest-asyncio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
894 B
Nix
Raw Normal View History

2020-01-29 13:26:46 -05:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "nest-asyncio";
version = "1.5.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "erdewit";
repo = "nest_asyncio";
rev = "refs/tags/v${version}";
hash = "sha256-DxIHDU/3OP3AF/abQs3Y6Im6VUiHYgMmVVh4fDeT8gk=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"nest_asyncio"
];
2020-01-29 13:26:46 -05:00
meta = with lib; {
description = "Patch asyncio to allow nested event loops";
2020-01-29 13:26:46 -05:00
homepage = "https://github.com/erdewit/nest_asyncio";
changelog = "https://github.com/erdewit/nest_asyncio/releases/tag/v${version}";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ ];
};
}