1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/development/python-modules/nest-asyncio/default.nix

29 lines
758 B
Nix
Raw Normal View History

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