From 64d0c0ec1e82b7c5987f9f1574acf05b365966d7 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 14 Dec 2016 19:10:14 +0100 Subject: [PATCH] pythonPackages.websockets: init at 3.2 --- .../python-modules/websockets/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/websockets/default.nix diff --git a/pkgs/development/python-modules/websockets/default.nix b/pkgs/development/python-modules/websockets/default.nix new file mode 100644 index 000000000000..8c66dc604077 --- /dev/null +++ b/pkgs/development/python-modules/websockets/default.nix @@ -0,0 +1,26 @@ +{ lib +, fetchurl +, buildPythonPackage +, pythonOlder +}: + +let + pname = "websockets"; + version = "3.2"; +in buildPythonPackage rec { + name = "${pname}-${version}"; + + src = fetchurl { + url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; + sha256 = "1dah1faywsnrlqyzagb1qc1cxrq9145srkdy118yhy9s8dyq4dmm"; + }; + + disabled = pythonOlder "3.3"; + doCheck = false; # protocol tests fail + + meta = { + description = "WebSocket implementation in Python 3"; + homepage = https://github.com/aaugustin/websockets; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87cd2970fabe..e1c0c1333edb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -26208,6 +26208,7 @@ in { }; }; + websockets = callPackage ../development/python-modules/websockets { }; wand = buildPythonPackage rec { name = "Wand-0.3.5";