pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / nest-asyncio / default.nix
blobf73c569fddacc96ffb96a02c6e4d5966712e355e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8   setuptools-scm,
9 }:
11 buildPythonPackage rec {
12   pname = "nest-asyncio";
13   version = "1.6.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "erdewit";
20     repo = "nest_asyncio";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-5I5WItOl1QpyI4OXZgZf8GiQ7Jlo+SJbDicIbernaU4=";
23   };
25   nativeBuildInputs = [
26     setuptools
27     setuptools-scm
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "nest_asyncio" ];
34   meta = with lib; {
35     description = "Patch asyncio to allow nested event loops";
36     homepage = "https://github.com/erdewit/nest_asyncio";
37     changelog = "https://github.com/erdewit/nest_asyncio/releases/tag/v${version}";
38     license = licenses.bsdOriginal;
39     maintainers = [ ];
40   };