From 1e605e654f7a02b6d954b51401784992664e8582 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 28 Jul 2017 16:47:39 +0200 Subject: [PATCH] python.pkgs.tornado: 4.4.2 -> 4.5.1 --- .../python-modules/tornado/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +----------- 2 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/tornado/default.nix diff --git a/pkgs/development/python-modules/tornado/default.nix b/pkgs/development/python-modules/tornado/default.nix new file mode 100644 index 000000000000..11078eb85623 --- /dev/null +++ b/pkgs/development/python-modules/tornado/default.nix @@ -0,0 +1,28 @@ +{ lib +, python +, buildPythonPackage +, fetchPypi +, backports_abc +, backports_ssl_match_hostname +, certifi +, singledispatch +}: + +buildPythonPackage rec { + pname = "tornado"; + version = "4.5.1"; + name = "${pname}-${version}"; + + propagatedBuildInputs = [ backports_abc backports_ssl_match_hostname certifi singledispatch ]; + + # We specify the name of the test files to prevent + # https://github.com/NixOS/nixpkgs/issues/14634 + checkPhase = '' + ${python.interpreter} -m unittest discover *_test.py + ''; + + src = fetchPypi { + inherit pname version; + sha256 = "db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0f66e2b24cf7..48ced46476f9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -25537,23 +25537,7 @@ EOF }; }; - tornado = buildPythonPackage rec { - name = "tornado-${version}"; - version = "4.4.2"; - - propagatedBuildInputs = with self; [ backports_abc backports_ssl_match_hostname certifi singledispatch ]; - - # We specify the name of the test files to prevent - # https://github.com/NixOS/nixpkgs/issues/14634 - checkPhase = '' - ${python.interpreter} -m unittest discover *_test.py - ''; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/tornado/${name}.tar.gz"; - sha256 = "1k7d90afm5pivam90a37nqiz9wlmakvnsfymp3p43kcqz29gk618"; - }; - }; + tornado = callPackage ../development/python-modules/tornado { }; tokenlib = buildPythonPackage rec { name = "tokenlib-${version}";