1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/nest-asyncio/default.nix

29 lines
744 B
Nix
Raw Normal View History

2020-01-29 18:26:46 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonAtLeast
}:
buildPythonPackage rec {
version = "1.2.3";
pname = "nest_asyncio";
disabled = !(pythonAtLeast "3.5");
src = fetchPypi {
inherit pname version;
sha256 = "0fznrg32rk6fmvpfdxwwhadh526gdjivmdifg2hiciil2gr8n1s3";
};
# tests not packaged with source dist as of 1.2.3/1.2.3, and
# can't check tests out of GitHub easily without specific commit IDs (no tagged releases)
doCheck = false;
pythonImportsCheck = [ "nest_asyncio" ];
2020-01-29 18:26:46 +00:00
meta = with lib; {
description = "Patch asyncio to allow nested event loops";
2020-01-29 18:26:46 +00:00
homepage = "https://github.com/erdewit/nest_asyncio";
license = licenses.bsdOriginal;
2020-01-29 18:26:46 +00:00
maintainers = with maintainers; [ costrouc ];
};
}