From b9ccbbffa7397b2bb9e4d6e260b58af9bd47cf00 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 7 May 2019 08:53:23 -0400 Subject: [PATCH] pythonPackages.uvloop: init at 0.12.2 --- .../python-modules/uvloop/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/uvloop/default.nix diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix new file mode 100644 index 000000000000..9c3dae74a79e --- /dev/null +++ b/pkgs/development/python-modules/uvloop/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pyopenssl +, libuv +, psutil +, isPy27 +}: + +buildPythonPackage rec { + pname = "uvloop"; + version = "0.12.2"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "c48692bf4587ce281d641087658eca275a5ad3b63c78297bbded96570ae9ce8f"; + }; + + buildInputs = [ libuv ]; + + checkInputs = [ pyopenssl psutil ]; + + meta = with lib; { + description = "Fast implementation of asyncio event loop on top of libuv"; + homepage = http://github.com/MagicStack/uvloop; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2849f3b3114b..cb4a7b35ce4a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -913,6 +913,8 @@ in { unifi = callPackage ../development/python-modules/unifi { }; + uvloop = callPackage ../development/python-modules/uvloop { }; + pyunifi = callPackage ../development/python-modules/pyunifi { }; vidstab = callPackage ../development/python-modules/vidstab { };